Instructions to use ermiaazarkhalili/Olmo-3-7B-SFT-Fable5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ermiaazarkhalili/Olmo-3-7B-SFT-Fable5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ermiaazarkhalili/Olmo-3-7B-SFT-Fable5") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ermiaazarkhalili/Olmo-3-7B-SFT-Fable5") model = AutoModelForCausalLM.from_pretrained("ermiaazarkhalili/Olmo-3-7B-SFT-Fable5", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ermiaazarkhalili/Olmo-3-7B-SFT-Fable5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ermiaazarkhalili/Olmo-3-7B-SFT-Fable5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ermiaazarkhalili/Olmo-3-7B-SFT-Fable5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ermiaazarkhalili/Olmo-3-7B-SFT-Fable5
- SGLang
How to use ermiaazarkhalili/Olmo-3-7B-SFT-Fable5 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ermiaazarkhalili/Olmo-3-7B-SFT-Fable5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ermiaazarkhalili/Olmo-3-7B-SFT-Fable5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ermiaazarkhalili/Olmo-3-7B-SFT-Fable5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ermiaazarkhalili/Olmo-3-7B-SFT-Fable5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use ermiaazarkhalili/Olmo-3-7B-SFT-Fable5 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/Olmo-3-7B-SFT-Fable5 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/Olmo-3-7B-SFT-Fable5 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ermiaazarkhalili/Olmo-3-7B-SFT-Fable5 to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="ermiaazarkhalili/Olmo-3-7B-SFT-Fable5", max_seq_length=2048, ) - Docker Model Runner
How to use ermiaazarkhalili/Olmo-3-7B-SFT-Fable5 with Docker Model Runner:
docker model run hf.co/ermiaazarkhalili/Olmo-3-7B-SFT-Fable5
Olmo-3-7B-SFT-Fable5
A LoRA fine-tune of allenai/Olmo-3-7B-Instruct, supervised fine-tuned on ermiaazarkhalili/Fable-5-Complete-2M-Clean (private).
| Base model | allenai/Olmo-3-7B-Instruct |
| Architecture | Olmo3ForCausalLM |
| Parameters | 7.3B |
| Training data | ermiaazarkhalili/Fable-5-Complete-2M-Clean (private) |
| Method | LoRA supervised fine-tuning via Unsloth + TRL |
| License | apache-2.0 (inherited from the base model) |
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "ermiaazarkhalili/Olmo-3-7B-SFT-Fable5"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype='auto', device_map='auto')
messages = [{"role": "user", "content": "Explain gradient checkpointing in two sentences."}]
inputs = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, return_tensors='pt'
).to(model.device)
outputs = model.generate(inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Training configuration
| Setting | Value |
|---|---|
| LoRA rank (r) | 16 |
| LoRA alpha | 16 |
| Learning rate | 0.0002 |
| Epochs | 1 |
| 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, out_proj |
Held-out evaluation
Next-token accuracy on a deterministic held-out split of ermiaazarkhalili/Fable-5-Complete-2M-Clean (n = 19,994 samples), scored against the base model allenai/Olmo-3-7B-Instruct. Assistant tokens only; both models are scored identically.
| Metric | Base | This model | Δ |
|---|---|---|---|
| Top-1 accuracy | 0.5648 | 0.7295 | +0.1646 |
| Top-5 accuracy | 0.7878 | 0.9183 | +0.1306 |
A delta measures how far fine-tuning moved this model from its own starting point; it is not a ranking against other models, which start from different baselines.
Observed training loss
Measured from our SLURM logs for this configuration. These are training-loss observations only — see the held-out evaluation above for measured accuracy.
| SLURM job | Steps | First loss | Final loss |
|---|---|---|---|
53842495 |
47,128 | 1.3742 | 1.0206 |
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_olmo3-7b_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
- 966
Model tree for ermiaazarkhalili/Olmo-3-7B-SFT-Fable5
Base model
allenai/Olmo-3-1025-7B