Text Generation
Transformers
Safetensors
English
lfm2_moe
lfm
liquid-ai
Mixture of Experts
agentic
terminal
fable-5
distillation
sft
ablation
conversational
Instructions to use LLM-OS-Models/Fabliq-8B-Agent-FromBase with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LLM-OS-Models/Fabliq-8B-Agent-FromBase with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LLM-OS-Models/Fabliq-8B-Agent-FromBase") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("LLM-OS-Models/Fabliq-8B-Agent-FromBase") model = AutoModelForCausalLM.from_pretrained("LLM-OS-Models/Fabliq-8B-Agent-FromBase") 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 LLM-OS-Models/Fabliq-8B-Agent-FromBase with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LLM-OS-Models/Fabliq-8B-Agent-FromBase" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LLM-OS-Models/Fabliq-8B-Agent-FromBase", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/LLM-OS-Models/Fabliq-8B-Agent-FromBase
- SGLang
How to use LLM-OS-Models/Fabliq-8B-Agent-FromBase 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 "LLM-OS-Models/Fabliq-8B-Agent-FromBase" \ --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": "LLM-OS-Models/Fabliq-8B-Agent-FromBase", "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 "LLM-OS-Models/Fabliq-8B-Agent-FromBase" \ --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": "LLM-OS-Models/Fabliq-8B-Agent-FromBase", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use LLM-OS-Models/Fabliq-8B-Agent-FromBase with Docker Model Runner:
docker model run hf.co/LLM-OS-Models/Fabliq-8B-Agent-FromBase
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: LiquidAI/LFM2.5-8B-A1B
|
| 5 |
+
base_model_relation: finetune
|
| 6 |
+
tags:
|
| 7 |
+
- lfm
|
| 8 |
+
- liquid-ai
|
| 9 |
+
- moe
|
| 10 |
+
- agentic
|
| 11 |
+
- terminal
|
| 12 |
+
- fable-5
|
| 13 |
+
- distillation
|
| 14 |
+
- sft
|
| 15 |
+
- ablation
|
| 16 |
+
language:
|
| 17 |
+
- en
|
| 18 |
+
pipeline_tag: text-generation
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# Fabliq-8B-Agent-FromBase ππ¬
|
| 22 |
+
|
| 23 |
+
> **Ablation variant** of [Fabliq-8B-Agent](https://huggingface.co/LLM-OS-Models/Fabliq-8B-Agent) β fine-tuned directly from raw [`LiquidAI/LFM2.5-8B-A1B`](https://huggingface.co/LiquidAI/LFM2.5-8B-A1B), skipping the ToolBench foundation. Used to isolate the effect of the ToolBench intermediate stage.
|
| 24 |
+
|
| 25 |
+
## π¬ Why this variant?
|
| 26 |
+
|
| 27 |
+
[Fabliq-8B-Agent](https://huggingface.co/LLM-OS-Models/Fabliq-8B-Agent) is trained as: `LiquidAI/LFM2.5-8B-A1B` β `ToolBench-Full-SFT-1Epoch` β `Fable-5`.
|
| 28 |
+
|
| 29 |
+
**This model** skips the middle step: `LiquidAI/LFM2.5-8B-A1B` β `Fable-5` (direct).
|
| 30 |
+
|
| 31 |
+
Comparing the two answers the question: **does ToolBench foundation actually help, or does Fable-5 alone give you the same agent?**
|
| 32 |
+
|
| 33 |
+
## π§ͺ Model details
|
| 34 |
+
|
| 35 |
+
| | |
|
| 36 |
+
| --- | --- |
|
| 37 |
+
| **Architecture** | Lfm2MoeForCausalLM (24 layers, 32 experts, 4 experts/token) |
|
| 38 |
+
| **Parameters** | ~8B total / ~1B active (MoE) |
|
| 39 |
+
| **Context** | 8,192 trained Β· 128K native |
|
| 40 |
+
| **Precision** | bfloat16 |
|
| 41 |
+
| **Fine-tune type** | Full-parameter SFT (direct from base, no ToolBench) |
|
| 42 |
+
| **License** | Apache 2.0 |
|
| 43 |
+
|
| 44 |
+
## π Training data
|
| 45 |
+
|
| 46 |
+
Same as Phase-1: [Fable-5-traces](https://huggingface.co/datasets/Glint-Research/Fable-5-traces), 4,047 rows Γ 3 epoch.
|
| 47 |
+
|
| 48 |
+
## π§ Training procedure
|
| 49 |
+
|
| 50 |
+
| Hyperparameter | Value |
|
| 51 |
+
| --- | --- |
|
| 52 |
+
| Schedule | 3 epochs, constant LR |
|
| 53 |
+
| Max sequence length | 8,192 |
|
| 54 |
+
| Per-device batch size | 2 |
|
| 55 |
+
| Gradient accumulation | 4 |
|
| 56 |
+
| GPUs | 8Γ H200 (effective batch 64) |
|
| 57 |
+
| Learning rate | **1e-6** (higher than Phase-1's 5e-7, since starting from base) |
|
| 58 |
+
| Precision | bf16 |
|
| 59 |
+
| Final train_loss | logged in run_config.json |
|
| 60 |
+
| Train runtime | ~14 min |
|
| 61 |
+
|
| 62 |
+
## π³ Model tree
|
| 63 |
+
|
| 64 |
+
```
|
| 65 |
+
LiquidAI/LFM2.5-8B-A1B
|
| 66 |
+
ββ LLM-OS-Models/LFM2.5-8B-A1B-Terminal-ToolBench-Full-SFT-1Epoch
|
| 67 |
+
β ββ LLM-OS-Models/Fabliq-8B-Agent β Phase-1 (ToolBench β Fable-5)
|
| 68 |
+
ββ LLM-OS-Models/Fabliq-8B-Agent-FromBase β this model (base β Fable-5, direct)
|
| 69 |
+
ββ LLM-OS-Models/Fabliq-8B-Agent-FromBase-Reasoning β + reasoning expansion
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
## π Usage
|
| 73 |
+
|
| 74 |
+
See [Fabliq-8B-Agent](https://huggingface.co/LLM-OS-Models/Fabliq-8B-Agent) β same system prompt, same tool-call format, same inference code.
|
| 75 |
+
|
| 76 |
+
## π License
|
| 77 |
+
|
| 78 |
+
Apache 2.0.
|