Instructions to use sixf0ur/tiny-lm-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use sixf0ur/tiny-lm-chat with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="sixf0ur/tiny-lm-chat", filename="tiny-lm-chat-f16.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use sixf0ur/tiny-lm-chat 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 sixf0ur/tiny-lm-chat:F16 # Run inference directly in the terminal: llama cli -hf sixf0ur/tiny-lm-chat:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf sixf0ur/tiny-lm-chat:F16 # Run inference directly in the terminal: llama cli -hf sixf0ur/tiny-lm-chat:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf sixf0ur/tiny-lm-chat:F16 # Run inference directly in the terminal: ./llama-cli -hf sixf0ur/tiny-lm-chat:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf sixf0ur/tiny-lm-chat:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf sixf0ur/tiny-lm-chat:F16
Use Docker
docker model run hf.co/sixf0ur/tiny-lm-chat:F16
- LM Studio
- Jan
- Ollama
How to use sixf0ur/tiny-lm-chat with Ollama:
ollama run hf.co/sixf0ur/tiny-lm-chat:F16
- Unsloth Studio
How to use sixf0ur/tiny-lm-chat with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for sixf0ur/tiny-lm-chat to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for sixf0ur/tiny-lm-chat to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for sixf0ur/tiny-lm-chat to start chatting
- Atomic Chat new
- Docker Model Runner
How to use sixf0ur/tiny-lm-chat with Docker Model Runner:
docker model run hf.co/sixf0ur/tiny-lm-chat:F16
- Lemonade
How to use sixf0ur/tiny-lm-chat with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sixf0ur/tiny-lm-chat:F16
Run and chat with the model
lemonade run user.tiny-lm-chat-F16
List all available models
lemonade list
Upload 5 files
Browse files- config.json +31 -0
- generation_config.json +10 -0
- model.safetensors +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +9 -0
config.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"GemmaForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 1,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"head_dim": 48,
|
| 11 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 12 |
+
"hidden_size": 288,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 888,
|
| 15 |
+
"max_position_embeddings": 192,
|
| 16 |
+
"model_type": "gemma",
|
| 17 |
+
"num_attention_heads": 6,
|
| 18 |
+
"num_hidden_layers": 12,
|
| 19 |
+
"num_key_value_heads": 6,
|
| 20 |
+
"pad_token_id": 0,
|
| 21 |
+
"rms_norm_eps": 1e-06,
|
| 22 |
+
"rope_parameters": {
|
| 23 |
+
"rope_theta": 10000.0,
|
| 24 |
+
"rope_type": "default"
|
| 25 |
+
},
|
| 26 |
+
"tie_word_embeddings": true,
|
| 27 |
+
"transformers_version": "5.10.2",
|
| 28 |
+
"use_bidirectional_attention": null,
|
| 29 |
+
"use_cache": false,
|
| 30 |
+
"vocab_size": 4096
|
| 31 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"output_attentions": false,
|
| 6 |
+
"output_hidden_states": false,
|
| 7 |
+
"pad_token_id": 0,
|
| 8 |
+
"transformers_version": "5.10.2",
|
| 9 |
+
"use_cache": false
|
| 10 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c0cdc09b8d0450a7c1b0e8fcf36e0a2921eebe4e765843fbf14efce9f795b53
|
| 3 |
+
size 57511728
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<bos>",
|
| 4 |
+
"eos_token": "<eos>",
|
| 5 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 6 |
+
"pad_token": "<pad>",
|
| 7 |
+
"tokenizer_class": "TokenizersBackend",
|
| 8 |
+
"unk_token": "<unk>"
|
| 9 |
+
}
|