Instructions to use FahrenheitResearch/FR-Lex-1.7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use FahrenheitResearch/FR-Lex-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-Lex-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-Lex-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-Lex-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-Lex-1.7B" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use FahrenheitResearch/FR-Lex-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-Lex-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-Lex-1.7B
Run Hermes
hermes
- OpenClaw new
How to use FahrenheitResearch/FR-Lex-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-Lex-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-Lex-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-Lex-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-Lex-1.7B"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "FahrenheitResearch/FR-Lex-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-Lex-1.7B", "messages": [ {"role": "user", "content": "Hello"} ] }'
Re-skin badges to site palette (crimson/teal) + on-brand banner
Browse files- README.md +8 -8
- assets/banner.jpeg +2 -2
README.md
CHANGED
|
@@ -35,14 +35,14 @@ widget:
|
|
| 35 |
`GROUNDED.` `JURISDICTIONAL.` `LOCAL.`
|
| 36 |
|
| 37 |
<p>
|
| 38 |
-
<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-
|
| 39 |
-
<img alt="Base" src="https://img.shields.io/badge/Base-Qwen3--1.7B-1A1A1A?style=flat-square&labelColor=
|
| 40 |
-
<img alt="Format" src="https://img.shields.io/badge/MLX_路_4--bit-1A1A1A?style=flat-square&labelColor=
|
| 41 |
-
<img alt="Domain" src="https://img.shields.io/badge/Domain-Legal-
|
| 42 |
-
<img alt="Version" src="https://img.shields.io/badge/Version-0.3-
|
| 43 |
-
<a href="https://f-r.co" target="_blank" style="margin:2px;"><img alt="Website" src="https://img.shields.io/badge/Website-f--r.co-
|
| 44 |
-
<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=
|
| 45 |
-
<a href="https://huggingface.co/FahrenheitResearch/FR-Forge-1.7B" target="_blank" style="margin:2px;"><img alt="Sibling" src="https://img.shields.io/badge/Sibling-FR--Forge_1.7B-1A1A1A?style=flat-square&labelColor=
|
| 46 |
</p>
|
| 47 |
|
| 48 |
</div>
|
|
|
|
| 35 |
`GROUNDED.` `JURISDICTIONAL.` `LOCAL.`
|
| 36 |
|
| 37 |
<p>
|
| 38 |
+
<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>
|
| 39 |
+
<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;">
|
| 40 |
+
<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;">
|
| 41 |
+
<img alt="Domain" src="https://img.shields.io/badge/Domain-Legal-19C3B3?style=flat-square&labelColor=161619" style="display:inline-block;vertical-align:middle;">
|
| 42 |
+
<img alt="Version" src="https://img.shields.io/badge/Version-0.3-FF2D36?style=flat-square&labelColor=161619" style="display:inline-block;vertical-align:middle;">
|
| 43 |
+
<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>
|
| 44 |
+
<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>
|
| 45 |
+
<a href="https://huggingface.co/FahrenheitResearch/FR-Forge-1.7B" target="_blank" style="margin:2px;"><img alt="Sibling" src="https://img.shields.io/badge/Sibling-FR--Forge_1.7B-1A1A1A?style=flat-square&labelColor=161619" style="display:inline-block;vertical-align:middle;"></a>
|
| 46 |
</p>
|
| 47 |
|
| 48 |
</div>
|
assets/banner.jpeg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|