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/compare.py from HelioAI/LFM3-1.7B-inference-modules-experiments: direct link, hf CLI and curl.
- Browser
- Download file 2.89 kB
-
https://huggingface.co/HelioAI/LFM3-1.7B-inference-modules-experiments/resolve/main/research/scripts/compare.py
- Command line
-
hf download hf://HelioAI/LFM3-1.7B-inference-modules-experiments/research/scripts/compare.py
-
curl -L -o compare.py https://huggingface.co/HelioAI/LFM3-1.7B-inference-modules-experiments/resolve/main/research/scripts/compare.py
2.89 kB
| """Paired comparison of two graded runs on the same items. | |
| For every task: accuracy of A and B, difference, 95% paired-bootstrap CI of the difference (resampling items, | |
| samples of one item averaged), and a two-sided paired permutation p-value (random sign flips of per-item deltas). | |
| usage: compare.py <tagA> <tagB> [--json out.json] | |
| """ | |
| import json | |
| import os | |
| import random | |
| import sys | |
| from collections import defaultdict | |
| ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") | |
| def load(tag): | |
| per = defaultdict(lambda: defaultdict(list)) | |
| meta = defaultdict(lambda: defaultdict(list)) | |
| for l in open(os.path.join(ROOT, "results", tag, "graded.jsonl"), encoding="utf-8"): | |
| g = json.loads(l) | |
| per[g["task"]][g["id"]].append(float(g["correct"])) | |
| meta[g["task"]]["tok"].append(g["n_tokens"]) | |
| meta[g["task"]]["trunc"].append(float(g["truncated"])) | |
| return per, meta | |
| def main(): | |
| a_tag, b_tag = sys.argv[1], sys.argv[2] | |
| A, Am = load(a_tag) | |
| B, Bm = load(b_tag) | |
| rng = random.Random(0) | |
| out = {} | |
| print(f"{'task':10s} {'n':>5s} {a_tag[:12]:>12s} {b_tag[:12]:>12s} {'delta':>7s} {'95% CI':>17s} {'p':>7s}" | |
| f" {'tokA':>6s} {'tokB':>6s} {'trA%':>5s} {'trB%':>5s}") | |
| macro = [] | |
| for t in sorted(set(A) & set(B)): | |
| ids = sorted(set(A[t]) & set(B[t])) | |
| a = [sum(A[t][i]) / len(A[t][i]) for i in ids] | |
| b = [sum(B[t][i]) / len(B[t][i]) for i in ids] | |
| d = [y - x for x, y in zip(a, b)] | |
| n = len(ids) | |
| mean_d = sum(d) / n | |
| boots = sorted(sum(d[rng.randrange(n)] for _ in range(n)) / n for _ in range(2000)) | |
| lo, hi = boots[50], boots[1949] | |
| obs = abs(sum(d)) | |
| perm = sum(abs(sum(x if rng.random() < 0.5 else -x for x in d)) >= obs - 1e-12 for _ in range(4000)) | |
| p = (perm + 1) / 4001 | |
| acc_a, acc_b = 100 * sum(a) / n, 100 * sum(b) / n | |
| tok_a = sum(Am[t]["tok"]) / len(Am[t]["tok"]) | |
| tok_b = sum(Bm[t]["tok"]) / len(Bm[t]["tok"]) | |
| tr_a = 100 * sum(Am[t]["trunc"]) / len(Am[t]["trunc"]) | |
| tr_b = 100 * sum(Bm[t]["trunc"]) / len(Bm[t]["trunc"]) | |
| print(f"{t:10s} {n:5d} {acc_a:12.2f} {acc_b:12.2f} {100 * mean_d:+7.2f} [{100 * lo:+6.2f},{100 * hi:+6.2f}]" | |
| f" {p:7.4f} {tok_a:6.0f} {tok_b:6.0f} {tr_a:5.1f} {tr_b:5.1f}") | |
| out[t] = {"n": n, "acc_a": acc_a, "acc_b": acc_b, "delta": 100 * mean_d, "ci": [100 * lo, 100 * hi], "p": p, | |
| "tok_a": tok_a, "tok_b": tok_b, "trunc_a": tr_a, "trunc_b": tr_b} | |
| macro.append((acc_a, acc_b)) | |
| ma = sum(x for x, _ in macro) / len(macro) | |
| mb = sum(y for _, y in macro) / len(macro) | |
| print(f"{'MACRO':10s} {'':5s} {ma:12.2f} {mb:12.2f} {mb - ma:+7.2f}") | |
| if "--json" in sys.argv: | |
| json.dump(out, open(sys.argv[sys.argv.index("--json") + 1], "w"), indent=1) | |
| if __name__ == "__main__": | |
| main() | |