Instructions to use tiiuae/Falcon-H1-Tiny-Tool-Calling-90M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tiiuae/Falcon-H1-Tiny-Tool-Calling-90M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tiiuae/Falcon-H1-Tiny-Tool-Calling-90M") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tiiuae/Falcon-H1-Tiny-Tool-Calling-90M") model = AutoModelForCausalLM.from_pretrained("tiiuae/Falcon-H1-Tiny-Tool-Calling-90M") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use tiiuae/Falcon-H1-Tiny-Tool-Calling-90M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tiiuae/Falcon-H1-Tiny-Tool-Calling-90M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tiiuae/Falcon-H1-Tiny-Tool-Calling-90M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tiiuae/Falcon-H1-Tiny-Tool-Calling-90M
- SGLang
How to use tiiuae/Falcon-H1-Tiny-Tool-Calling-90M with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "tiiuae/Falcon-H1-Tiny-Tool-Calling-90M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tiiuae/Falcon-H1-Tiny-Tool-Calling-90M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "tiiuae/Falcon-H1-Tiny-Tool-Calling-90M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tiiuae/Falcon-H1-Tiny-Tool-Calling-90M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use tiiuae/Falcon-H1-Tiny-Tool-Calling-90M with Docker Model Runner:
docker model run hf.co/tiiuae/Falcon-H1-Tiny-Tool-Calling-90M
Table of Contents
TL;DR
Model Details
Model Description
- Developed by: https://www.tii.ae
- Model type: Causal decoder-only
- Architecture: Hybrid Transformers + Mamba architecture
- Language(s) (NLP): English
- Number of Parameters: 90M
- License: Falcon-LLM License
Training details
For more details about the training protocol of this model, please refer to the Falcon-H1-Tiny technical blogpost.
Usage
Currently to use this model you can either rely on Hugging Face transformers, vLLM, sglang, llama.cpp, ollama or mlx library.
Inference
🤗 transformers
Refer to the snippet below to run H1 models using 🤗 transformers:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "tiiuae/Falcon-H1-Tiny-90M-Tool-Calling"
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Perform text generation
or
transformers serve tiiuae/Falcon-H1-Tiny-90M-Tool-Calling
llama.cpp
You can find all GGUF files compatible with llama.cpp under our official collection - an example setup could be:
brew install llama.cpp
pip install huggingface_hub
hf download tiiuae/Falcon-H1-Tiny-90M-Tool-Calling Falcon-H1-Tiny-90M-Tool-Calling-Q8_0.gguf --local-dir ./
llama-cli ./ Falcon-H1-Tiny-90M-Tool-Calling-Q8_0.gguf -cnv
ollama
ollama run hf.co/tiiuae/Falcon-H1-Tiny-90M-Tool-Calling:Q8_0
Apple mlx
mlx_lm.chat --model tiiuae/Falcon-H1-Tiny-90M-Tool-Calling
vLLM
For vLLM, simply start a server by executing the command below:
# pip install vllm>=0.9.0
vllm serve tiiuae/Falcon-H1-Tiny-90M-Tool-Calling --tensor-parallel-size 2 --data-parallel-size 1
sglang
python -m sglang.launch_server \
--model ttiiuae/Falcon-H1-Tiny-90M-Tool-Calling \
--tensor-parallel-size 1
Evaluation
For detailed evaluation of Falcon-H1-Tiny series, please refer to our technical blogpost
Useful links
- View our release blogpost.
- Feel free to join our discord server if you have any questions or to interact with our researchers and developers.
Citation
If the Falcon-H1-Tiny family of models were helpful to your work, feel free to give us a cite.
@misc{falcon_h1_tiny,
title={Falcon-H1-Tiny: A series of extremely small, yet powerful language models redefining capabilities at small scale},
author={Falcon-LLM Team},
year={2026},
}
- Downloads last month
- 273