Instructions to use ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF 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 ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF 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 ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF: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 ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF: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 ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF:Q4_K_M
Use Docker
docker model run hf.co/ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF:Q4_K_M
- Ollama
How to use ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF with Ollama:
ollama run hf.co/ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF:Q4_K_M
- Unsloth Studio
How to use ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF 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 ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF 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 ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF to start chatting
- Docker Model Runner
How to use ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF with Docker Model Runner:
docker model run hf.co/ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF:Q4_K_M
- Lemonade
How to use ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.FastContext-4B-RL_base-SFT-Fable5-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
FastContext-4B-RL_base-SFT-Fable5-GGUF
GGUF quantizations of a LoRA fine-tune of microsoft/FastContext-1.0-4B-RL (no longer available on the Hub), supervised fine-tuned on ermiaazarkhalili/Fable-5-Complete-2M-Clean (private).
Quantized from ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5. See that repository for the full-precision weights.
| Base model | microsoft/FastContext-1.0-4B-RL (no longer available on the Hub) |
| Training data | ermiaazarkhalili/Fable-5-Complete-2M-Clean (private) |
| Method | LoRA supervised fine-tuning via Unsloth + TRL |
Available quantizations
| File | Size |
|---|---|
fastcontext-4b-rl_base-sft-fable5.q4_k_m.gguf |
2.50 GB |
fastcontext-4b-rl_base-sft-fable5.q5_k_m.gguf |
2.89 GB |
fastcontext-4b-rl_base-sft-fable5.q8_0.gguf |
4.28 GB |
Usage
llama.cpp
huggingface-cli download ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF fastcontext-4b-rl_base-sft-fable5.q4_k_m.gguf --local-dir .
llama-cli -m fastcontext-4b-rl_base-sft-fable5.q4_k_m.gguf -p "Explain gradient checkpointing in two sentences." -n 256
Ollama
echo 'FROM ./fastcontext-4b-rl_base-sft-fable5.q4_k_m.gguf' > Modelfile
ollama create fastcontext-4b-rl_base-sft-fable5-gguf -f Modelfile
ollama run fastcontext-4b-rl_base-sft-fable5-gguf
Training configuration
| Setting | Value |
|---|---|
| LoRA rank (r) | 16 |
| LoRA alpha | 16 |
| Learning rate | 0.0002 |
| Epochs | 2 |
| Effective batch size | 8 (2 x 4 grad accum) |
| Max sequence length | 4096 |
| Base precision | 4-bit (QLoRA) |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
Observed training loss
Measured from our SLURM logs for this configuration. These are training-loss observations only โ no downstream benchmark evaluation has been run on this model, so they should not be read as a quality claim.
| SLURM job | Steps | First loss | Final loss |
|---|---|---|---|
53225525 |
94,254 | 1.1631 | 0.8687 |
Limitations
- No benchmark evaluation has been run on this checkpoint. The only reported numbers are training-loss observations.
- Inherits the biases, knowledge cutoff and failure modes of the base model.
- Fine-tuned on a single instruction-following dataset; behaviour outside that distribution is untested.
- LoRA adapters were merged into the base weights, so the merged model cannot be detached from this fine-tune.
Reproducing
Trained by notebooks/fable_distillation_fastcontext-4b-rl_fable_unsloth.ipynb, executed non-interactively with
papermill on a SLURM H100 partition (Unsloth + TRL, LoRA).
Card generated from the training run's own configuration and logs by
scripts/generate_hub_model_card.py.
- Downloads last month
- 147
4-bit
5-bit
8-bit
Model tree for ermiaazarkhalili/FastContext-4B-RL_base-SFT-Fable5-GGUF
Base model
microsoft/FastContext-1.0-4B-RL