Safetensors
GGUF
English
Russian
lfm3
reasoning
test-time-compute
inference-time-scaling
code-generation
llama.cpp
negative-results
conversational
Instructions to use HelioAI/LFM3-1.7B-inference-modules-experiments with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use HelioAI/LFM3-1.7B-inference-modules-experiments with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M # Run inference directly in the terminal: llama cli -hf HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M # Run inference directly in the terminal: llama cli -hf HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M
Use Docker
docker model run hf.co/HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use HelioAI/LFM3-1.7B-inference-modules-experiments with Ollama:
ollama run hf.co/HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M
- Unsloth Desktop
- Pi
How to use HelioAI/LFM3-1.7B-inference-modules-experiments with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use HelioAI/LFM3-1.7B-inference-modules-experiments with Docker Model Runner:
docker model run hf.co/HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M
- Lemonade
How to use HelioAI/LFM3-1.7B-inference-modules-experiments with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M
Run and chat with the model
lemonade run user.LFM3-1.7B-inference-modules-experiments-Q5_K_M
List all available models
lemonade list
- Hermes Agent
How to use HelioAI/LFM3-1.7B-inference-modules-experiments with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use HelioAI/LFM3-1.7B-inference-modules-experiments with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "HelioAI/LFM3-1.7B-inference-modules-experiments:Q5_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download research/scripts/prep_dev_general.py from HelioAI/LFM3-1.7B-inference-modules-experiments: direct link, hf CLI and curl.
- Browser
- Download file 2.65 kB
-
https://huggingface.co/HelioAI/LFM3-1.7B-inference-modules-experiments/resolve/main/research/scripts/prep_dev_general.py
- Command line
-
hf download hf://HelioAI/LFM3-1.7B-inference-modules-experiments/research/scripts/prep_dev_general.py
-
curl -L -o prep_dev_general.py https://huggingface.co/HelioAI/LFM3-1.7B-inference-modules-experiments/resolve/main/research/scripts/prep_dev_general.py
2.65 kB
| """General-skills dev set, disjoint from the test suite: MMLU-Pro (20/category, other questions), BBH (10/task, | |
| other examples), GSM8K train (200). Used to catch regressions outside the trained domains during development.""" | |
| import json, os, random | |
| from datasets import load_dataset | |
| ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") | |
| rng = random.Random(99) | |
| test_ids = set() | |
| for f in ("mmlupro", "bbh"): | |
| test_ids |= {json.loads(l)["id"] for l in open(os.path.join(ROOT, "data/eval", f + ".jsonl"), encoding="utf-8")} | |
| rows = [] | |
| ds = load_dataset("TIGER-Lab/MMLU-Pro", split="test") | |
| by = {} | |
| for r in ds: | |
| if f"mmlupro/{r['question_id']}" not in test_ids: | |
| by.setdefault(r["category"], []).append(r) | |
| for cat in sorted(by): | |
| for r in rng.sample(by[cat], 20): | |
| letters = "ABCDEFGHIJ"[: len(r["options"])] | |
| opts = "\n".join(f"{l}. {o}" for l, o in zip(letters, r["options"])) | |
| rows.append({"id": f"dev_mmlupro/{r['question_id']}", "task": "mmlupro", "category": cat, | |
| "prompt": f"{r['question']}\n\n{opts}\n\nAnswer with the letter of the correct option. " | |
| f"End your response with 'The answer is X.' where X is the letter.", "answer": r["answer"]}) | |
| import importlib.util | |
| spec = importlib.util.spec_from_file_location("pe", os.path.join(ROOT, "scripts/prep_eval.py")) | |
| BBH_TASKS = [l.strip().strip('",') for l in open(os.path.join(ROOT, "scripts/prep_eval.py"), encoding="utf-8").read().split("BBH_TASKS = [")[1].split("]")[0].replace("\n", " ").split(",")] | |
| BBH_TASKS = [t.strip().strip('"') for t in BBH_TASKS if t.strip()] | |
| for t in BBH_TASKS: | |
| ds = load_dataset("lukaemon/bbh", t, split="test") | |
| idx = [i for i in range(len(ds)) if f"bbh/{t}/{i}" not in test_ids] | |
| for i in rng.sample(idx, 10): | |
| r = ds[i] | |
| rows.append({"id": f"dev_bbh/{t}/{i}", "task": "bbh", "subtask": t, | |
| "prompt": r["input"] + "\n\nThink step by step, then end your response with 'The answer is: <answer>'.", | |
| "answer": r["target"]}) | |
| ds = load_dataset("openai/gsm8k", "main", split="train") | |
| for i in rng.sample(range(len(ds)), 200): | |
| r = ds[i] | |
| rows.append({"id": f"dev_gsm8k/{i}", "task": "gsm8k", | |
| "prompt": r["question"] + "\n\nPlease reason step by step, and put your final answer within \boxed{}.", | |
| "answer": r["answer"].split("####")[-1].strip().replace(",", "")}) | |
| with open(os.path.join(ROOT, "data/train/dev_general.jsonl"), "w", encoding="utf-8") as f: | |
| for r in rows: | |
| f.write(json.dumps(r, ensure_ascii=False) + "\n") | |
| print(len(rows), len(BBH_TASKS)) | |