Instructions to use ritlab/model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ritlab/model with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ritlab/model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ritlab/model with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf ritlab/model:Q4_K_M # Run inference directly in the terminal: llama cli -hf ritlab/model:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ritlab/model:Q4_K_M # Run inference directly in the terminal: llama cli -hf ritlab/model:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf ritlab/model:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf ritlab/model:Q4_K_M
Use Docker
docker model run hf.co/ritlab/model:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use ritlab/model with Ollama:
ollama run hf.co/ritlab/model:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use ritlab/model with Docker Model Runner:
docker model run hf.co/ritlab/model:Q4_K_M
- Lemonade
How to use ritlab/model with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ritlab/model:Q4_K_M
Run and chat with the model
lemonade run user.model-Q4_K_M
List all available models
lemonade list
- Atomic Chat
(Trained with Unsloth)
Browse files
Modelfile
CHANGED
|
@@ -8,9 +8,9 @@ TEMPLATE """Below are some instructions that describe some tasks. Write response
|
|
| 8 |
### Response:
|
| 9 |
{{ .Response }}<|end_of_text|>"""
|
| 10 |
|
|
|
|
| 11 |
PARAMETER stop "<|end_header_id|>"
|
| 12 |
PARAMETER stop "<|eot_id|>"
|
| 13 |
-
PARAMETER stop "<|start_header_id|>"
|
| 14 |
PARAMETER stop "<|end_of_text|>"
|
| 15 |
PARAMETER stop "<|reserved_special_token_"
|
| 16 |
PARAMETER temperature 1.5
|
|
|
|
| 8 |
### Response:
|
| 9 |
{{ .Response }}<|end_of_text|>"""
|
| 10 |
|
| 11 |
+
PARAMETER stop "<|start_header_id|>"
|
| 12 |
PARAMETER stop "<|end_header_id|>"
|
| 13 |
PARAMETER stop "<|eot_id|>"
|
|
|
|
| 14 |
PARAMETER stop "<|end_of_text|>"
|
| 15 |
PARAMETER stop "<|reserved_special_token_"
|
| 16 |
PARAMETER temperature 1.5
|