Instructions to use LiquidAI/LFM3-1.7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LiquidAI/LFM3-1.7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LiquidAI/LFM3-1.7B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("LiquidAI/LFM3-1.7B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LiquidAI/LFM3-1.7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LiquidAI/LFM3-1.7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LiquidAI/LFM3-1.7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/LiquidAI/LFM3-1.7B
- SGLang
How to use LiquidAI/LFM3-1.7B 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 "LiquidAI/LFM3-1.7B" \ --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": "LiquidAI/LFM3-1.7B", "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 "LiquidAI/LFM3-1.7B" \ --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": "LiquidAI/LFM3-1.7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use LiquidAI/LFM3-1.7B with Docker Model Runner:
docker model run hf.co/LiquidAI/LFM3-1.7B
Commit History
Yesterday
-
Add evaluation results
Verified signature# Add evaluation results for LiquidAI/LFM3-1.7B ## Summary This PR adds the benchmark results published on the model card for `LiquidAI/LFM3-1.7B` to `.eval_results/`, following the [Hugging Face Hub evaluation-results specification](https://huggingface.co/docs/hub/eval-results). ## Benchmarks Added - [Terminal-Bench 2.1](https://huggingface.co/datasets/harborframework/terminal-bench-2.1?eval_result=LiquidAI/LFM3-1.7B&leaderboard_task_id=terminalbench_2_1) — 12.92 - [SWE-bench Verified](https://huggingface.co/datasets/SWE-bench/SWE-bench_Verified?eval_result=LiquidAI/LFM3-1.7B&leaderboard_task_id=swe_bench_%_resolved) — 43.4 - [SWE-bench Multilingual](https://huggingface.co/datasets/SWE-bench/SWE-bench_Multilingual?eval_result=LiquidAI/LFM3-1.7B&leaderboard_task_id=swe_bench_multilingual_%_resolved) — 23.0 - [Claw-Eval (General, pass^3)](https://huggingface.co/datasets/claw-eval/Claw-Eval?eval_result=LiquidAI/LFM3-1.7B&leaderboard_task_id=general) — 51.4 - [GPQA Diamond](https://hu…e1d7b24 -
Update Google Colab notebooks
Verified signatureda90f4c
2 days ago
-
LFM3-1.7B
Co-authored-by: paulpak58 <paulpak58@users.noreply.huggingface.co> Co-authored-by: EdoardoMosca <EdoardoMosca@users.noreply.huggingface.co>40ebe0a