Text Generation
MLX
Safetensors
English
qwen3
manufacturing
thin-language-model
lens
lora
4-bit precision
apple-silicon
conversational
Eval Results (legacy)
Instructions to use FahrenheitResearch/FR-Forge-1.7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use FahrenheitResearch/FR-Forge-1.7B with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("FahrenheitResearch/FR-Forge-1.7B") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use FahrenheitResearch/FR-Forge-1.7B with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "FahrenheitResearch/FR-Forge-1.7B"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "FahrenheitResearch/FR-Forge-1.7B" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use FahrenheitResearch/FR-Forge-1.7B with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "FahrenheitResearch/FR-Forge-1.7B"
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 FahrenheitResearch/FR-Forge-1.7B
Run Hermes
hermes
- OpenClaw new
How to use FahrenheitResearch/FR-Forge-1.7B with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "FahrenheitResearch/FR-Forge-1.7B"
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 "FahrenheitResearch/FR-Forge-1.7B" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- MLX LM
How to use FahrenheitResearch/FR-Forge-1.7B with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "FahrenheitResearch/FR-Forge-1.7B"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "FahrenheitResearch/FR-Forge-1.7B" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FahrenheitResearch/FR-Forge-1.7B", "messages": [ {"role": "user", "content": "Hello"} ] }'
| license: apache-2.0 | |
| license_link: https://www.apache.org/licenses/LICENSE-2.0 | |
| language: | |
| - en | |
| library_name: mlx | |
| base_model: mlx-community/Qwen3-1.7B-4bit | |
| base_model_relation: finetune | |
| pipeline_tag: text-generation | |
| tags: | |
| - mlx | |
| - qwen3 | |
| - manufacturing | |
| - thin-language-model | |
| - lens | |
| - lora | |
| - 4-bit | |
| - apple-silicon | |
| - text-generation | |
| - conversational | |
| widget: | |
| - text: "How should I set safety stock for a long-lead component with variable demand?" | |
| model-index: | |
| - name: FR-Forge-1.7B | |
| results: | |
| - task: | |
| type: text-generation | |
| name: Manufacturing domain QA | |
| dataset: | |
| type: fahrenheit-research/fr-forge-eval | |
| name: FR-Forge held-out eval (3 pillars, keyword-rubric) | |
| metrics: | |
| - type: accuracy | |
| name: Overall (rubric coverage) | |
| value: 82.3 | |
| - type: accuracy | |
| name: Ops & Maintenance | |
| value: 92.9 | |
| - type: accuracy | |
| name: Quality & Compliance | |
| value: 70.8 | |
| - type: accuracy | |
| name: Supply Chain & Planning | |
| value: 83.3 | |
| <div align="center"> | |
| <img src="https://huggingface.co/FahrenheitResearch/FR-Forge-1.7B/resolve/main/assets/banner.jpeg" alt="Fahrenheit Research" width="100%"> | |
| # FR-Forge-1.7B | |
| **A Thin Language Model for manufacturing. Grounded, specialized, and running on your laptop.** | |
| `GROUNDED.` `SPECIALIZED.` `LOCAL.` | |
| <p> | |
| <a href="https://www.apache.org/licenses/LICENSE-2.0" target="_blank" style="margin:2px;"><img alt="License" src="https://img.shields.io/badge/License-Apache_2.0-FF2D36?style=flat-square&labelColor=161619" style="display:inline-block;vertical-align:middle;"></a> | |
| <img alt="Base" src="https://img.shields.io/badge/Base-Qwen3--1.7B-1A1A1A?style=flat-square&labelColor=161619" style="display:inline-block;vertical-align:middle;"> | |
| <img alt="Format" src="https://img.shields.io/badge/MLX_Β·_4--bit-1A1A1A?style=flat-square&labelColor=161619&logo=apple&logoColor=19C3B3" style="display:inline-block;vertical-align:middle;"> | |
| <img alt="Domain" src="https://img.shields.io/badge/Domain-Manufacturing-19C3B3?style=flat-square&labelColor=161619" style="display:inline-block;vertical-align:middle;"> | |
| <a href="https://f-r.co" target="_blank" style="margin:2px;"><img alt="Website" src="https://img.shields.io/badge/Website-f--r.co-FF2D36?style=flat-square&labelColor=161619" style="display:inline-block;vertical-align:middle;"></a> | |
| <a href="https://github.com/fahrenheit-research" target="_blank" style="margin:2px;"><img alt="GitHub" src="https://img.shields.io/badge/GitHub-fahrenheit--research-1A1A1A?style=flat-square&labelColor=161619&logo=github&logoColor=white" style="display:inline-block;vertical-align:middle;"></a> | |
| <a href="https://huggingface.co/FahrenheitResearch/FR-Lex-1.7B" target="_blank" style="margin:2px;"><img alt="Sibling" src="https://img.shields.io/badge/Sibling-FR--Lex_1.7B-1A1A1A?style=flat-square&labelColor=161619" style="display:inline-block;vertical-align:middle;"></a> | |
| </p> | |
| </div> | |
| --- | |
| ## Contents | |
| 1. [Overview](#overview) | |
| 2. [How it works](#how-it-works) | |
| 3. [Specifications](#specifications) | |
| 4. [Quickstart](#quickstart) | |
| 5. [Intended use](#intended-use) | |
| 6. [Evaluation](#evaluation) | |
| 7. [Limitations](#limitations) | |
| 8. [Training](#training) | |
| 9. [Citation](#citation) | |
| ## Overview | |
| FR-Forge-1.7B is a **Thin Language Model (TLM)** for the manufacturing sector, by Fahrenheit Research. Sibling to [FR-Lex](https://huggingface.co/FahrenheitResearch/FR-Lex-1.7B) (legal). It is a small, 4-bit, MLX model fine-tuned with LoRA adapters on a curated manufacturing instruction corpus, designed to run locally on Apple Silicon. | |
| ```text | |
| Where a Thin Language Model fits | |
| specialization | |
| β² | |
| β β FR-Forge 1.7B | |
| β narrow Β· local Β· cheap | |
| β | |
| β β Frontier LLM | |
| β broad Β· hosted Β· costly | |
| ββββββββββββββββββββββββββββββββββββββββββββββββΆ generality | |
| ``` | |
| ## How it works | |
| ```text | |
| Manufacturing question | |
| β | |
| βΌ | |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| β FR-Forge 1.7B β | |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| β | |
| reasons across three pillars | |
| β | |
| ββ Ops & Maintenance SOPs Β· PM/PdM Β· OEE Β· troubleshooting | |
| ββ Quality & Compliance ISO 9001 Β· IATF 16949 Β· FDA/GMP Β· CAPA Β· FMEA Β· SPC | |
| ββ Supply Chain & Planning MRP/ERP Β· BOMs Β· inventory Β· demand planning | |
| β | |
| βΌ | |
| Grounded, local answer (verify exact clauses against the controlling standard) | |
| ``` | |
| It is an assistant, not a certified authority. It is not a substitute for the controlling standard, safety sign-off, or regulatory advice. | |
| ## Specifications | |
| | | | | |
| |---|---| | |
| | **Base** | Qwen3-1.7B (4-bit, MLX) | | |
| | **Parameters** | 1.7B Β· 4-bit | | |
| | **Method** | LoRA adapters, fused | | |
| | **Runtime** | MLX (Apple Silicon) | | |
| | **Languages** | English | | |
| | **License** | Apache-2.0 | | |
| ## Quickstart | |
| Runs locally with MLX on Apple Silicon. Apply a repetition penalty to avoid looping. | |
| ```bash | |
| pip install -U mlx-lm | |
| python3 -m mlx_lm generate \ | |
| --model FahrenheitResearch/FR-Forge-1.7B \ | |
| --repetition-penalty 1.15 \ | |
| --max-tokens 500 \ | |
| --prompt "How should I set safety stock for a long-lead component with variable demand?" | |
| ``` | |
| Recommended generation settings: `repetition_penalty = 1.15` (raise to 1.3 if output repeats). A system prompt of "You are FR-Forge, a manufacturing domain assistant." matches training. | |
| ## Intended use | |
| Assisting manufacturing teams with everyday domain questions across three pillars: | |
| ```text | |
| FR-Forge covers | |
| ββ Shop-floor ops & maintenance SOPs, work instructions, equipment manuals, PM/PdM, OEE, troubleshooting | |
| ββ Quality & compliance ISO 9001, IATF 16949, ISO 13485, FDA/GMP, CAPA, FMEA, SPC, MSA, audits | |
| ββ Supply chain & planning MRP/ERP, procurement, BOMs, inventory, demand planning, suppliers | |
| ``` | |
| **Out of scope.** Safety, regulatory, or compliance sign-off; anything that must be exact (part numbers, clause text, customer-specific requirements) without grounding it in your own documents. | |
| ## Evaluation | |
| A held-out set of prompts across the three pillars is scored with a deterministic keyword-rubric: each item defines groups of required terms, and a group passes if any synonym appears in the answer. The item score is the fraction of groups covered; pillar and overall scores are averages. Generation uses a 1.15 repetition penalty. | |
| ```text | |
| Held-out eval, keyword rubric (percent coverage) | |
| Ops & Maintenance ββββββββββββββββββββ 92.9 | |
| Quality & Compliance ββββββββββββββββββββ 70.8 | |
| Supply Chain & Planning ββββββββββββββββββββ 83.3 | |
| βββββββββββββββββββββββ ββββββββββββββββββββ ββββ | |
| Overall ββββββββββββββββββββ 82.3 | |
| ``` | |
| | Pillar | Score | | |
| |---|---| | |
| | Ops & Maintenance | 92.9% | | |
| | Quality & Compliance | 70.8% | | |
| | Supply Chain & Planning | 83.3% | | |
| | **Overall** | **82.3%** | | |
| This measures domain-term coverage, not eloquence or factual grading, and the held-out set is small, so treat results as a directional, reproducible yardstick rather than a precise grade. The untuned base can be scored with `python3 scripts/evaluate.py --base-only`, and the tuned model is reproduced with `python3 scripts/evaluate.py --max-tokens 500`. | |
| ## Limitations | |
| > **Not a certified authority.** Outputs assist research and drafting only. They are not a substitute for the controlling standard, safety sign-off, or regulatory advice. | |
| - **English only** (v1). | |
| - **Paraphrased, not verbatim.** Trained on domain reasoning, not reproduced standards; always verify clause-level detail against the controlling standard. | |
| - **Small model.** For facts that must be exact (part numbers, clause text, customer-specific requirements), ground it with retrieval over your own documents rather than relying on memory. | |
| - **Self-reported metric.** Evaluation is an internal keyword-coverage score on a small held-out set. | |
| ## Training | |
| ```text | |
| Domain instruction pairs ββ | |
| 110 ops & maintenance β | |
| 100 quality & compliance βββΆ LoRA fine-tune (MLX) ββΆ fuse adapters ββΆ FR-Forge 1.7B | |
| 51 supply chain & planningβ iters 800 Β· lr 1e-5 Β· seq 512 | |
| ``` | |
| ```text | |
| Training data, 261 instruction pairs | |
| Ops & Maintenance ββββββββββββββββ 110 | |
| Quality & Compliance ββββββββββββββββ 100 | |
| Supply Chain & Planning ββββββββββββββββ 51 | |
| ``` | |
| <details> | |
| <summary>Base, method, data, and hyperparameters</summary> | |
| - **Base model:** `mlx-community/Qwen3-1.7B-4bit` (Qwen3 architecture, 4-bit) | |
| - **Method:** LoRA adapters via `mlx-lm`, fused into this standalone model | |
| - **Data:** 261 curated instruction pairs (110 ops & maintenance, 100 quality & compliance, 51 supply chain & planning). Sources: paraphrased domain reasoning plus model-assisted synthetic pairs with human review. No copyrighted standard text is reproduced verbatim; the data teaches structure and reasoning and cites clause numbers. | |
| - **Hyperparameters:** iters 800, LoRA layers 8, batch size 1, max sequence length 512, learning rate 1e-5, gradient checkpointing on. Peak training memory ~2 GB. | |
| </details> | |
| ## Citation | |
| Apache-2.0. Base model `mlx-community/Qwen3-1.7B-4bit` is Apache-2.0. | |
| ``` | |
| @software{fr_forge_2026, | |
| title = {FR-Forge-1.7B: a thin language model for manufacturing}, | |
| author = {Fahrenheit Research}, | |
| year = {2026}, | |
| note = {Fine-tuned from Qwen3-1.7B (4-bit) with MLX/LoRA} | |
| } | |
| ``` | |
| --- | |
| <div align="center"> | |
| **FAHRENHEIT RESEARCH** | |
| Thin Language Models for specialized domains. | |
| [Website](https://f-r.co) Β· [GitHub](https://github.com/fahrenheit-research) Β· [Sibling model: FR-Lex-1.7B](https://huggingface.co/FahrenheitResearch/FR-Lex-1.7B) | |
| </div> | |