Run this model with HF Jobs
Run tiiuae/Falcon3-1B-Base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/tiiuae/Falcon3-1B-Base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/tiiuae/Falcon3-1B-Base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/tiiuae/Falcon3-1B-Base. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/tiiuae/Falcon3-1B-Base. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use tiiuae/Falcon3-1B-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tiiuae/Falcon3-1B-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tiiuae/Falcon3-1B-Base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tiiuae/Falcon3-1B-Base") model = AutoModelForCausalLM.from_pretrained("tiiuae/Falcon3-1B-Base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tiiuae/Falcon3-1B-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tiiuae/Falcon3-1B-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tiiuae/Falcon3-1B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tiiuae/Falcon3-1B-Base
- SGLang
How to use tiiuae/Falcon3-1B-Base 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-1B-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tiiuae/Falcon3-1B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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-1B-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tiiuae/Falcon3-1B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use tiiuae/Falcon3-1B-Base with Docker Model Runner:
docker model run hf.co/tiiuae/Falcon3-1B-Base
fix: use correct rounding (#5)
Browse files- fix: use correct rounding (b74b487796ba80c7f5e9c5ddfd6786eeab271a20)
Co-authored-by: William de Vazelhes <wdevazelhes@users.noreply.huggingface.co>
158 unmodified lines1591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971984 unmodified lines2032042052062072082092102112122132142 unmodified lines217218219220221222223224225226227228229230231232233234235236237238158 unmodified lines<td>MMLU (5-shot)</td><td>31.1</td><td>61.0</td><td>50.2</td><td>53.1</td><td>42.5</td></tr><tr><td>MMLU-PRO (5-shot)</td><td>11.7</td><td>28.5</td><td>21.4</td><td>22.1</td><td>16.2</td></tr><tr><td>IFEval</td><td>14.9</td><td>26.1</td><td>24.2</td><td>20.4</td><td>25.3</td></tr><tr><td rowspan="2">Math</td><td>GSM8K (5-shot)</td><td>6.6</td><td>62.3</td><td>31.1</td><td>25.6</td><td>34.3</td></tr><tr><td>MATH Lvl-5 (4-shot)</td><td>0.3</td><td>6.8</td><td>1.5</td><td>2.6</td><td>2.2</td></tr>4 unmodified lines<td>54.8</td><td>54.1</td><td>53.7</td><td>48.2</td></tr><tr><td>GPQA (0-shot)</td><td>24.3</td><td>28.2</td><td>28.9</td><td>25.5</td><td>28.1</td>2 unmodified lines<td>MUSR (0-shot)</td><td>34.5</td><td>35.5</td><td>34.8</td><td>42.8</td><td>41.9</td></tr><tr><td>BBH (3-shot)</td><td>31.2</td><td>41.1</td><td>34.3</td><td>36.8</td><td>36.1</td></tr><tr><td rowspan="4">CommonSense Understanding</td><td>PIQA (0-shot)</td><td>74.6</td><td>76.0</td><td>77.5</td><td>79.2</td>158 unmodified lines1591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971984 unmodified lines2032042052062072082092102112122132142 unmodified lines217218219220221222223224225226227228229230231232233234235236237238158 unmodified lines<td>MMLU (5-shot)</td><td>31.1</td><td>61.0</td><td>50.1</td><td>53.0</td><td>42.5</td></tr><tr><td>MMLU-PRO (5-shot)</td><td>11.7</td><td>28.4</td><td>21.3</td><td>22.1</td><td>16.1</td></tr><tr><td>IFEval</td><td>14.8</td><td>26.0</td><td>24.2</td><td>20.3</td><td>25.2</td></tr><tr><td rowspan="2">Math</td><td>GSM8K (5-shot)</td><td>6.6</td><td>62.2</td><td>31.0</td><td>25.5</td><td>34.3</td></tr><tr><td>MATH Lvl-5 (4-shot)</td><td>0.2</td><td>6.7</td><td>1.4</td><td>2.6</td><td>2.2</td></tr>4 unmodified lines<td>54.8</td><td>54.1</td><td>53.7</td><td>48.1</td></tr><tr><td>GPQA (0-shot)</td><td>24.2</td><td>28.1</td><td>28.9</td><td>25.5</td><td>28.1</td>2 unmodified lines<td>MUSR (0-shot)</td><td>34.5</td><td>35.5</td><td>34.7</td><td>42.7</td><td>41.9</td></tr><tr><td>BBH (3-shot)</td><td>31.2</td><td>41.1</td><td>34.2</td><td>36.8</td><td>36.0</td></tr><tr><td rowspan="4">CommonSense Understanding</td><td>PIQA (0-shot)</td><td>74.5</td><td>76.0</td><td>77.5</td><td>79.2</td>
README.md+23-23