Instructions to use PracticalWork/Falcon3-1B-Instruct-tuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use PracticalWork/Falcon3-1B-Instruct-tuned with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("tiiuae/Falcon3-1B-Instruct") model = PeftModel.from_pretrained(base_model, "PracticalWork/Falcon3-1B-Instruct-tuned") - Transformers
How to use PracticalWork/Falcon3-1B-Instruct-tuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PracticalWork/Falcon3-1B-Instruct-tuned") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("PracticalWork/Falcon3-1B-Instruct-tuned", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use PracticalWork/Falcon3-1B-Instruct-tuned with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PracticalWork/Falcon3-1B-Instruct-tuned" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PracticalWork/Falcon3-1B-Instruct-tuned", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/PracticalWork/Falcon3-1B-Instruct-tuned
- SGLang
How to use PracticalWork/Falcon3-1B-Instruct-tuned 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 "PracticalWork/Falcon3-1B-Instruct-tuned" \ --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": "PracticalWork/Falcon3-1B-Instruct-tuned", "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 "PracticalWork/Falcon3-1B-Instruct-tuned" \ --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": "PracticalWork/Falcon3-1B-Instruct-tuned", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use PracticalWork/Falcon3-1B-Instruct-tuned with Docker Model Runner:
docker model run hf.co/PracticalWork/Falcon3-1B-Instruct-tuned
Update README.md
Browse files
README.md
CHANGED
|
@@ -21,18 +21,6 @@ It achieves the following results on the evaluation set:
|
|
| 21 |
- Loss: 1.7228
|
| 22 |
- Perplexity: 5.6001
|
| 23 |
|
| 24 |
-
## Model description
|
| 25 |
-
|
| 26 |
-
More information needed
|
| 27 |
-
|
| 28 |
-
## Intended uses & limitations
|
| 29 |
-
|
| 30 |
-
More information needed
|
| 31 |
-
|
| 32 |
-
## Training and evaluation data
|
| 33 |
-
|
| 34 |
-
More information needed
|
| 35 |
-
|
| 36 |
## Training procedure
|
| 37 |
|
| 38 |
### Training hyperparameters
|
|
@@ -55,6 +43,7 @@ The following hyperparameters were used during training:
|
|
| 55 |
| 1.9189 | 1.2022 | 666 | 1.8092 | 6.1057 |
|
| 56 |
| 1.9189 | 1.8032 | 999 | 1.7672 | 5.8541 |
|
| 57 |
| 1.7617 | 2.4043 | 1332 | 1.7440 | 5.7203 |
|
|
|
|
| 58 |
|
| 59 |
|
| 60 |
### Framework versions
|
|
|
|
| 21 |
- Loss: 1.7228
|
| 22 |
- Perplexity: 5.6001
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
## Training procedure
|
| 25 |
|
| 26 |
### Training hyperparameters
|
|
|
|
| 43 |
| 1.9189 | 1.2022 | 666 | 1.8092 | 6.1057 |
|
| 44 |
| 1.9189 | 1.8032 | 999 | 1.7672 | 5.8541 |
|
| 45 |
| 1.7617 | 2.4043 | 1332 | 1.7440 | 5.7203 |
|
| 46 |
+
| 1.7617 | 3 | 1664 | 1.7228 | 5.6001 |
|
| 47 |
|
| 48 |
|
| 49 |
### Framework versions
|