Skip to content

Commit

Permalink
Add LLM tools
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Aug 27, 2024
1 parent 01d7bd9 commit c766f45
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,36 @@ Here are some suggested models that work well with vLLM.
| Phi-3 Small 7B | None | [microsoft/Phi-3-small-8k-instruct](https://huggingface.co/microsoft/Phi-3-small-8k-instruct) | 16k | MIT |
| Phi-3 Medium 14B | None | [microsoft/Phi-3-medium-4k-instruct](https://huggingface.co/microsoft/Phi-3-medium-4k-instruct) | 4k | MIT |

## LLM Tools

### LLM

A CLI utility (`llm`) and Python library for interacting with Large Language Models. To configure this tool to use your local LLM's OpenAI API:

```bash
# Install llm command line tool
pipx install llm

# Location to store configuration files:
dirname "$(llm logs path)"
```

You define the model in the `extra-openai-models.yaml` file. Create this file in the directory discovered above. Edit the model_name and api_base to match your LLM OpenAI API setup:

```yaml
- model_id: tinyllm
model_name: meta-llama/Meta-Llama-3.1-8B-Instruct
api_base: "http://localhost:8000/v1"
```
```bash
# Configure llm to use your local model
llm models default tinyllm

# Test
llm "What is love?"
```

## References

* LLaMa.cpp - https://github.com/ggerganov/llama.cpp
Expand Down

0 comments on commit c766f45

Please sign in to comment.