Instructions to use shibatch/tiny1m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shibatch/tiny1m with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("shibatch/tiny1m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use shibatch/tiny1m 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 shibatch/tiny1m:Q4_K_M # Run inference directly in the terminal: llama cli -hf shibatch/tiny1m:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf shibatch/tiny1m:Q4_K_M # Run inference directly in the terminal: llama cli -hf shibatch/tiny1m: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 shibatch/tiny1m:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf shibatch/tiny1m:Q4_K_M
Use Docker
docker model run hf.co/shibatch/tiny1m:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use shibatch/tiny1m with Ollama:
ollama run hf.co/shibatch/tiny1m:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use shibatch/tiny1m with Docker Model Runner:
docker model run hf.co/shibatch/tiny1m:Q4_K_M
- Lemonade
How to use shibatch/tiny1m with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull shibatch/tiny1m:Q4_K_M
Run and chat with the model
lemonade run user.tiny1m-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload hf/tokenizer_config.json with huggingface_hub
Browse files- hf/tokenizer_config.json +10 -0
hf/tokenizer_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": true,
|
| 3 |
+
"add_eos_token": false,
|
| 4 |
+
"bos_token": "<s>",
|
| 5 |
+
"eos_token": "</s>",
|
| 6 |
+
"model_max_length": 256,
|
| 7 |
+
"pad_token": "</s>",
|
| 8 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 9 |
+
"unk_token": "<unk>"
|
| 10 |
+
}
|