mondk/Ultra-Trio-Unfiltered
Viewer • Updated • 31 • 104 • 2
How to use mondk/LFM3-1.7B-Claude-Code-Safetensors with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="mondk/LFM3-1.7B-Claude-Code-Safetensors", trust_remote_code=True)
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("mondk/LFM3-1.7B-Claude-Code-Safetensors", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("mondk/LFM3-1.7B-Claude-Code-Safetensors", trust_remote_code=True, 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=256)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))How to use mondk/LFM3-1.7B-Claude-Code-Safetensors with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "mondk/LFM3-1.7B-Claude-Code-Safetensors"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "mondk/LFM3-1.7B-Claude-Code-Safetensors",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/mondk/LFM3-1.7B-Claude-Code-Safetensors
How to use mondk/LFM3-1.7B-Claude-Code-Safetensors with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "mondk/LFM3-1.7B-Claude-Code-Safetensors" \
--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": "mondk/LFM3-1.7B-Claude-Code-Safetensors",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "mondk/LFM3-1.7B-Claude-Code-Safetensors" \
--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": "mondk/LFM3-1.7B-Claude-Code-Safetensors",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use mondk/LFM3-1.7B-Claude-Code-Safetensors with Docker Model Runner:
docker model run hf.co/mondk/LFM3-1.7B-Claude-Code-Safetensors
hi, I’ve fine-tuned the LiquidAI/LFM3-1.7B model over several rounds using the mondk/Ultra-Trio-Unfiltered dataset:
gguf: mondk/LFM3-1.7B-Claude-Code-GGUF
| Benchmark | Model | Correct | Wrong | Pass rate |
|---|---|---|---|---|
| BFCL v4 | LFM3 1.7B Claude Code | 27 | 3 | 90.0% |
| BFCL v4 | LFM3 1.7B | 25 | 5 | 83.3% |
| LCB v6 | LFM3 1.7B Claude Code | 2 | 10 | 16.7% |
| LCB v6 | LFM3 1.7B | 1 | 11 | 8.3% |
| TerminalBench | LFM3 1.7B Claude Code | 0 | 4 | 0.0% |
| TerminalBench | LFM3 1.7B | 0 | 4 | 0.0% |
| SWE | LFM3 1.7B Claude Code | 0 | 4 | 0.0% |
| SWE | LFM3 1.7B | 0 | 4 | 0.0% |
Method
Limitations
| Benchmark | Model | Format errors | Tool calls | Time (s) | Characters generated | Estimated tokens |
|---|---|---|---|---|---|---|
| TerminalBench | LFM3 1.7B Claude Code | 7 | 19 | 156.2 | 12,591 | ~3,150 |
| TerminalBench | LFM3 1.7B | 13 | 3 | 984.5 | 103,391 | ~25,850 |
| SWE | LFM3 1.7B Claude Code | 4 | 36 | 329.5 | 24,279 | ~6,070 |
| SWE | LFM3 1.7B | 12 | 0 | 90.5 | 8,018 | ~2,005 |
ty!