Instructions to use alexgusevski/Falcon-H1R-7B-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use alexgusevski/Falcon-H1R-7B-mlx 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("alexgusevski/Falcon-H1R-7B-mlx") 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 alexgusevski/Falcon-H1R-7B-mlx with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "alexgusevski/Falcon-H1R-7B-mlx"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "alexgusevski/Falcon-H1R-7B-mlx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use alexgusevski/Falcon-H1R-7B-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "alexgusevski/Falcon-H1R-7B-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "alexgusevski/Falcon-H1R-7B-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "alexgusevski/Falcon-H1R-7B-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use alexgusevski/Falcon-H1R-7B-mlx 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 "alexgusevski/Falcon-H1R-7B-mlx"
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 alexgusevski/Falcon-H1R-7B-mlx
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use alexgusevski/Falcon-H1R-7B-mlx with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "alexgusevski/Falcon-H1R-7B-mlx"
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 "alexgusevski/Falcon-H1R-7B-mlx" \ --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"
Download config.json from alexgusevski/Falcon-H1R-7B-mlx: direct link, hf CLI and curl.
- Browser
- Download file 1.81 kB
-
https://huggingface.co/alexgusevski/Falcon-H1R-7B-mlx/resolve/6cf8d4bde7a60d41fef9d97a5ca1b7a680c16c15/config.json
- Command line
-
hf download hf://alexgusevski/Falcon-H1R-7B-mlx@6cf8d4bde7a60d41fef9d97a5ca1b7a680c16c15/config.json
-
curl -L -o config.json https://huggingface.co/alexgusevski/Falcon-H1R-7B-mlx/resolve/6cf8d4bde7a60d41fef9d97a5ca1b7a680c16c15/config.json
1.81 kB
| { | |
| "architectures": [ | |
| "FalconH1ForCausalLM" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "attention_in_multiplier": 1.0, | |
| "attention_out_multiplier": 0.10416666666666669, | |
| "attn_layer_indices": null, | |
| "bos_token_id": 1, | |
| "embedding_multiplier": 5.656854249492381, | |
| "eos_token_id": [ | |
| 11, | |
| 228 | |
| ], | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 3072, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 12288, | |
| "key_multiplier": 0.030690398488999456, | |
| "lm_head_multiplier": 0.013020833333333334, | |
| "mamba_chunk_size": 128, | |
| "mamba_conv_bias": true, | |
| "mamba_d_conv": 4, | |
| "mamba_d_head": 128, | |
| "mamba_d_ssm": 3072, | |
| "mamba_d_state": 256, | |
| "mamba_expand": 2, | |
| "mamba_n_groups": 1, | |
| "mamba_n_heads": 24, | |
| "mamba_norm_before_gate": false, | |
| "mamba_proj_bias": false, | |
| "mamba_rms_norm": true, | |
| "mamba_use_mlp": true, | |
| "max_position_embeddings": 262144, | |
| "mlp_bias": false, | |
| "mlp_expansion_factor": 8, | |
| "mlp_multipliers": [ | |
| 0.2946278254943948, | |
| 0.032552083333333336 | |
| ], | |
| "model_type": "falcon_h1", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 44, | |
| "num_key_value_heads": 2, | |
| "num_logits_to_keep": 1, | |
| "pad_token_id": 0, | |
| "projectors_bias": false, | |
| "rms_norm_eps": 1e-05, | |
| "rope_scaling": null, | |
| "rope_theta": 100000000000, | |
| "ssm_in_multiplier": 0.4166666666666667, | |
| "ssm_multipliers": [ | |
| 0.3535533905932738, | |
| 0.25, | |
| 0.1767766952966369, | |
| 0.5, | |
| 0.3535533905932738 | |
| ], | |
| "ssm_out_multiplier": 0.11785113019775792, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.52.0.dev0", | |
| "use_cache": true, | |
| "vocab_size": 130048 | |
| } |