Text Generation
Transformers
Safetensors
English
qwen3_5
image-text-to-text
fabrix
argos
rdaf
dpo
direct-preference-optimization
citation-retrieval
custom-widgets
unsloth
conversational
Instructions to use Fabrix-AI-Inc/Argos-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Fabrix-AI-Inc/Argos-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Fabrix-AI-Inc/Argos-2B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Fabrix-AI-Inc/Argos-2B") model = AutoModelForMultimodalLM.from_pretrained("Fabrix-AI-Inc/Argos-2B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Fabrix-AI-Inc/Argos-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Fabrix-AI-Inc/Argos-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Fabrix-AI-Inc/Argos-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Fabrix-AI-Inc/Argos-2B
- SGLang
How to use Fabrix-AI-Inc/Argos-2B 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 "Fabrix-AI-Inc/Argos-2B" \ --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": "Fabrix-AI-Inc/Argos-2B", "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 "Fabrix-AI-Inc/Argos-2B" \ --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": "Fabrix-AI-Inc/Argos-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use Fabrix-AI-Inc/Argos-2B with Docker Model Runner:
docker model run hf.co/Fabrix-AI-Inc/Argos-2B
Argos 2B (DPO-Aligned Merged Model)
Argos 2B is an advanced domain-adapted model for Fabrix.ai / RDAF knowledge retrieval, documentation citation, and hop-closed custom widget dashboard pack generation.
This model combines:
- Supervised Fine-Tuning (SFT) on the comprehensive Fabrix / RDAF knowledge base and custom widget recipes.
- Direct Preference Optimization (DPO) trained concurrently on:
- Single-card preference pairs (
delta_20260821_dpo.jsonl) to strictly enforce card citations (kb/cards/*.md). - Hop-closed custom widget pack preference pairs (
pack_custom_widget_dpo.jsonl) to guarantee exact 34-item ordered card dependencies for custom widget dashboards.
- Single-card preference pairs (
📊 Alignment & Benchmark Performance
| Evaluation Benchmark | Baseline SFT | Argos 2B (DPO Aligned) |
|---|---|---|
| DPO Training Accuracy | 50.0% | 100.0% |
Card Format Accuracy (kb/cards/*) |
40.9% | 100.0% (22/22) |
| Single-Card Preference Citation Accuracy | 4.5% | 59.1% exact match |
| Custom Widget Pack Order Accuracy | 0.0% | 81.2% (13/16) |
🚀 Quickstart with transformers
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "Fabrix-AI-Inc/Argos-2B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto",
)
system_prompt = (
"You are Fabrix cite-mode retrieval. Reply with repo-relative kb/ paths only, one per line. "
"Prefer kb/cards/*.md. Cite a topic file (kb/pstreams/, kb/widgets/, kb/dashboards/, kb/ux/, kb/entry/) "
"only when no card fits. Typically 1-5 paths. No prose, no HTML, no line numbers, no GET/POST examples, "
"no secrets. Zero paths only if nothing under kb/ applies."
)
messages = [
{"role": "system", "content": system_prompt},
{"role": "user", "content": "Put a group filter on the top so I can pick site type, tier, and primary transport."},
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=64,
do_sample=False,
)
response = tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)
print(response.strip())
# Output: kb/cards/widget-filters.md
🏗️ Architecture & Model Specs
- Base Architecture:
Qwen3_5ForConditionalGeneration(2.3B parameters) - Format: Standalone Merged 16-bit Float Safetensors
- Adapter Version:
Fabrix-AI-Inc/Argos-2B-LoRA - Training Toolkit: Unsloth / Hugging Face Transformers / TRL / PyTorch
- Downloads last month
- -