Instructions to use Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2", filename="smollm-135m-instruct-add-basics-q8_0.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2 with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2:Q8_0 # Run inference directly in the terminal: llama-cli -hf Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2:Q8_0 # Run inference directly in the terminal: llama-cli -hf Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2:Q8_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 Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2:Q8_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 Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2:Q8_0
Use Docker
docker model run hf.co/Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2:Q8_0
- LM Studio
- Jan
- Ollama
How to use Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2 with Ollama:
ollama run hf.co/Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2:Q8_0
- Unsloth Studio new
How to use Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2 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 Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2 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 Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2 to start chatting
- Docker Model Runner
How to use Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2 with Docker Model Runner:
docker model run hf.co/Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2:Q8_0
- Lemonade
How to use Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Felladrin/gguf-Q8_0-smollm-135M-instruct-v0.2:Q8_0
Run and chat with the model
lemonade run user.gguf-Q8_0-smollm-135M-instruct-v0.2-Q8_0
List all available models
lemonade list
Duplicate from HuggingFaceTB/smollm-135M-instruct-v0.2-Q8_0-GGUF
Browse filesCo-authored-by: Elie Bakouch <eliebak@users.noreply.huggingface.co>
- .gitattributes +36 -0
- README.md +64 -0
- smollm-135m-instruct-add-basics-q8_0.gguf +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz 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 |
+
smollm-135m-instruct-add-basics-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: HuggingFaceTB/SmolLM-135M-Instruct
|
| 3 |
+
datasets:
|
| 4 |
+
- Magpie-Align/Magpie-Pro-300K-Filtered
|
| 5 |
+
- bigcode/self-oss-instruct-sc2-exec-filter-50k
|
| 6 |
+
- teknium/OpenHermes-2.5
|
| 7 |
+
- HuggingFaceTB/everyday-conversations-llama3.1-2k
|
| 8 |
+
- HuggingFaceTB/instruct-data-basics-H4
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
tags:
|
| 11 |
+
- alignment-handbook
|
| 12 |
+
- trl
|
| 13 |
+
- sft
|
| 14 |
+
- generated_from_trainer
|
| 15 |
+
- llama-cpp
|
| 16 |
+
- gguf-my-repo
|
| 17 |
+
model-index:
|
| 18 |
+
- name: smollm-135M-instruct-add-basics
|
| 19 |
+
results: []
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# smollm-135M-instruct-add-basics-Q8_0-GGUF
|
| 23 |
+
This model was converted to GGUF format from [`HuggingFaceTB/SmolLM-135M-Instruct`](https://huggingface.co/HuggingFaceTB/SmolLM-135M-Instruct) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
| 24 |
+
Refer to the [original model card](https://huggingface.co/HuggingFaceTB/SmolLM-135M-Instruct) for more details on the model.
|
| 25 |
+
|
| 26 |
+
## Use with llama.cpp
|
| 27 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
| 28 |
+
|
| 29 |
+
```bash
|
| 30 |
+
brew install llama.cpp
|
| 31 |
+
|
| 32 |
+
```
|
| 33 |
+
Invoke the llama.cpp server or the CLI.
|
| 34 |
+
|
| 35 |
+
### CLI:
|
| 36 |
+
```bash
|
| 37 |
+
llama-cli --hf-repo HuggingFaceTB/smollm-135M-instruct-add-basics-Q8_0-GGUF --hf-file smollm-135m-instruct-add-basics-q8_0.gguf -p "The meaning to life and the universe is"
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
### Server:
|
| 41 |
+
```bash
|
| 42 |
+
llama-server --hf-repo HuggingFaceTB/smollm-135M-instruct-add-basics-Q8_0-GGUF --hf-file smollm-135m-instruct-add-basics-q8_0.gguf -c 2048
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
|
| 46 |
+
|
| 47 |
+
Step 1: Clone llama.cpp from GitHub.
|
| 48 |
+
```
|
| 49 |
+
git clone https://github.com/ggerganov/llama.cpp
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
|
| 53 |
+
```
|
| 54 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
Step 3: Run inference through the main binary.
|
| 58 |
+
```
|
| 59 |
+
./llama-cli --hf-repo HuggingFaceTB/smollm-135M-instruct-add-basics-Q8_0-GGUF --hf-file smollm-135m-instruct-add-basics-q8_0.gguf -p "The meaning to life and the universe is"
|
| 60 |
+
```
|
| 61 |
+
or
|
| 62 |
+
```
|
| 63 |
+
./llama-server --hf-repo HuggingFaceTB/smollm-135M-instruct-add-basics-Q8_0-GGUF --hf-file smollm-135m-instruct-add-basics-q8_0.gguf -c 2048
|
| 64 |
+
```
|
smollm-135m-instruct-add-basics-q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a98d3857b95b96c156d954780d28f39dcb35b642e72892ee08ddff70719e6220
|
| 3 |
+
size 144811552
|