Instructions to use Cabbache/Fredu-1.7B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Cabbache/Fredu-1.7B-Instruct 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 Cabbache/Fredu-1.7B-Instruct:Q4_K_M # Run inference directly in the terminal: llama cli -hf Cabbache/Fredu-1.7B-Instruct:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Cabbache/Fredu-1.7B-Instruct:Q4_K_M # Run inference directly in the terminal: llama cli -hf Cabbache/Fredu-1.7B-Instruct:Q4_K_M
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 Cabbache/Fredu-1.7B-Instruct:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Cabbache/Fredu-1.7B-Instruct:Q4_K_M
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 Cabbache/Fredu-1.7B-Instruct:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Cabbache/Fredu-1.7B-Instruct:Q4_K_M
Use Docker
docker model run hf.co/Cabbache/Fredu-1.7B-Instruct:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Cabbache/Fredu-1.7B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Cabbache/Fredu-1.7B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Cabbache/Fredu-1.7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Cabbache/Fredu-1.7B-Instruct:Q4_K_M
- Ollama
How to use Cabbache/Fredu-1.7B-Instruct with Ollama:
ollama run hf.co/Cabbache/Fredu-1.7B-Instruct:Q4_K_M
- Unsloth Studio
How to use Cabbache/Fredu-1.7B-Instruct 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 Cabbache/Fredu-1.7B-Instruct 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 Cabbache/Fredu-1.7B-Instruct to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Cabbache/Fredu-1.7B-Instruct to start chatting
- Docker Model Runner
How to use Cabbache/Fredu-1.7B-Instruct with Docker Model Runner:
docker model run hf.co/Cabbache/Fredu-1.7B-Instruct:Q4_K_M
- Lemonade
How to use Cabbache/Fredu-1.7B-Instruct with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Cabbache/Fredu-1.7B-Instruct:Q4_K_M
Run and chat with the model
lemonade run user.Fredu-1.7B-Instruct-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -21,6 +21,46 @@ on a single consumer GPU (RTX 5060 Ti, 16 GB).
|
|
| 21 |
It is fluent in Maltese but hallucinates and does not always reply with anything related to the prompt.
|
| 22 |
It's able to translate english sentences into a related sentence in Maltese. It's quite bad at it but the Maltese translation is related somehow.
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
## What was done
|
| 25 |
|
| 26 |
| stage | data | result |
|
|
|
|
| 21 |
It is fluent in Maltese but hallucinates and does not always reply with anything related to the prompt.
|
| 22 |
It's able to translate english sentences into a related sentence in Maltese. It's quite bad at it but the Maltese translation is related somehow.
|
| 23 |
|
| 24 |
+
## How to run
|
| 25 |
+
|
| 26 |
+
### Ollama
|
| 27 |
+
|
| 28 |
+
```sh
|
| 29 |
+
ollama run hf.co/Cabbache/Fredu-1.7B-Instruct
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
The prompt template and sampling parameters are stored in the repo, so nothing
|
| 33 |
+
else is needed. Pick a build with a tag:
|
| 34 |
+
|
| 35 |
+
| tag | size | notes |
|
| 36 |
+
|---|---|---|
|
| 37 |
+
| *(none)* / `:Q4_K_M` | 1.0 GB | 4-bit, the default. Runs on a laptop, loses the most accuracy |
|
| 38 |
+
| `:Q8_0` | 1.8 GB | 8-bit, close to full quality |
|
| 39 |
+
| `:F16` | 3.3 GB | no quantization |
|
| 40 |
+
|
| 41 |
+
The weights were trained in bfloat16, so even `F16` is a small conversion away
|
| 42 |
+
from the `safetensors` originals rather than a bit-exact copy.
|
| 43 |
+
|
| 44 |
+
### transformers
|
| 45 |
+
|
| 46 |
+
```python
|
| 47 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 48 |
+
|
| 49 |
+
tok = AutoTokenizer.from_pretrained("Cabbache/Fredu-1.7B-Instruct")
|
| 50 |
+
model = AutoModelForCausalLM.from_pretrained("Cabbache/Fredu-1.7B-Instruct",
|
| 51 |
+
dtype="bfloat16", device_map="auto")
|
| 52 |
+
|
| 53 |
+
q = "X'inhu l-Kunsill Lokali f'Malta?"
|
| 54 |
+
ids = tok(f"Mistoqsija: {q}\nTweġiba:", return_tensors="pt").to(model.device)
|
| 55 |
+
out = model.generate(**ids, max_new_tokens=200, temperature=0.3, do_sample=True)
|
| 56 |
+
print(tok.decode(out[0], skip_special_tokens=True))
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
There is no chat template — use the `Mistoqsija:/Tweġiba:` framing above, which
|
| 60 |
+
is what the model was trained on. A low temperature helps: what factual
|
| 61 |
+
knowledge it has is held with very little margin and does not survive sampling
|
| 62 |
+
at 0.7.
|
| 63 |
+
|
| 64 |
## What was done
|
| 65 |
|
| 66 |
| stage | data | result |
|