Instructions to use ggml-org/tiny-llamas with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use ggml-org/tiny-llamas with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="ggml-org/tiny-llamas", filename="stories15M-q4_0.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use ggml-org/tiny-llamas with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ggml-org/tiny-llamas:Q4_0 # Run inference directly in the terminal: llama-cli -hf ggml-org/tiny-llamas:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ggml-org/tiny-llamas:Q4_0 # Run inference directly in the terminal: llama-cli -hf ggml-org/tiny-llamas:Q4_0
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 ggml-org/tiny-llamas:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf ggml-org/tiny-llamas:Q4_0
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 ggml-org/tiny-llamas:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf ggml-org/tiny-llamas:Q4_0
Use Docker
docker model run hf.co/ggml-org/tiny-llamas:Q4_0
- LM Studio
- Jan
- Ollama
How to use ggml-org/tiny-llamas with Ollama:
ollama run hf.co/ggml-org/tiny-llamas:Q4_0
- Unsloth Studio new
How to use ggml-org/tiny-llamas 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 ggml-org/tiny-llamas 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 ggml-org/tiny-llamas to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ggml-org/tiny-llamas to start chatting
- Docker Model Runner
How to use ggml-org/tiny-llamas with Docker Model Runner:
docker model run hf.co/ggml-org/tiny-llamas:Q4_0
- Lemonade
How to use ggml-org/tiny-llamas with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ggml-org/tiny-llamas:Q4_0
Run and chat with the model
lemonade run user.tiny-llamas-Q4_0
List all available models
lemonade list
Upload 4 files
Browse files- .gitattributes +4 -0
- stories15M-q4_0.gguf +3 -0
- stories15M-q8_0.gguf +3 -0
- stories15M.gguf +3 -0
- stories260K.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
stories15M-q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
stories15M-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
stories15M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
stories260K.gguf filter=lfs diff=lfs merge=lfs -text
|
stories15M-q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6151b1929d7f5aa3385d9ddef3393e55587c0a55de661562322bc51dfda93a04
|
| 3 |
+
size 19077344
|
stories15M-q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2eda49203f2f044f3dddf29a7dd7cc861ef5a0340f518a19613d73ba6d9c06b6
|
| 3 |
+
size 26671328
|
stories15M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61b50d457809a5194818fd22e6724b456cd7bb9a6264c52c8110684c53f3704a
|
| 3 |
+
size 98357920
|
stories260K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:047bf46455a544931cff6fef14d7910154c56afbc23ab1c5e56a72e69912c04b
|
| 3 |
+
size 1185376
|