Text Generation
Transformers
Safetensors
llama
falcon3
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use tiiuae/Falcon3-10B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tiiuae/Falcon3-10B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tiiuae/Falcon3-10B-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tiiuae/Falcon3-10B-Instruct") model = AutoModelForCausalLM.from_pretrained("tiiuae/Falcon3-10B-Instruct", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tiiuae/Falcon3-10B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tiiuae/Falcon3-10B-Instruct" # 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/Falcon3-10B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tiiuae/Falcon3-10B-Instruct
- SGLang
How to use tiiuae/Falcon3-10B-Instruct 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/Falcon3-10B-Instruct" \ --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/Falcon3-10B-Instruct", "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/Falcon3-10B-Instruct" \ --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/Falcon3-10B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use tiiuae/Falcon3-10B-Instruct with Docker Model Runner:
docker model run hf.co/tiiuae/Falcon3-10B-Instruct
Commit History
-
Add official leaderboard eval comparison
Verified signature8799bc6
-
Update bfcl result with FC api usage (#5)
Slim Frikha +1: fedyanin Verified signature- Update tool template with default sys message and upate bfcl score (0936c2a9b8aaeda76854e359dcc8429c9645bf32) Co-authored-by: Kirill <fedyanin@users.noreply.huggingface.co>d92e3ec
-
fix rounding readme
Slim FrikhaVerified signatureb8d0cbf -
fix typo benchs
Slim FrikhaVerified signature82558bf -
Update eval results with fewshot_as_multiturn
Verified signature06d0360
-
Upload tokenizer
Verified signature2843dfe -
Adding Evaluation Results (#2)
Verified signature- Adding Evaluation Results (b20622ad212b22727d30a2c924353d56ac070c02) Co-authored-by: Yağız Çalık <Weyaxi@users.noreply.huggingface.co>10532b2
-
Add useful links in README
Verified signaturea70cafa -
Update README.md (#1)
Verified signature- Update README.md (f3a24d22f7bdcecc6727da3b69ba4afe58b201a8) Co-authored-by: Dhia hf <Dhia-GB@users.noreply.huggingface.co>e186426 -
Update README.md
Verified signaturef518337 -
Update README.md
Verified signature9637b77 -
Update README.md
Verified signatureRewording to "at the time of release"77d052e -
Update README.md
Verified signatureUpdate code evals680242d -
Update README.md
Verified signatureChange to Alpaca96b844d -
falcon3 release
slim.frikha482db76