Instructions to use Falcon2006VN/GPasT-small-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Falcon2006VN/GPasT-small-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Falcon2006VN/GPasT-small-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Falcon2006VN/GPasT-small-model") model = AutoModelForCausalLM.from_pretrained("Falcon2006VN/GPasT-small-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Falcon2006VN/GPasT-small-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Falcon2006VN/GPasT-small-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Falcon2006VN/GPasT-small-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Falcon2006VN/GPasT-small-model
- SGLang
How to use Falcon2006VN/GPasT-small-model 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 "Falcon2006VN/GPasT-small-model" \ --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": "Falcon2006VN/GPasT-small-model", "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 "Falcon2006VN/GPasT-small-model" \ --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": "Falcon2006VN/GPasT-small-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Falcon2006VN/GPasT-small-model with Docker Model Runner:
docker model run hf.co/Falcon2006VN/GPasT-small-model
Commit History
-
Upload 3 files
c529f75 -
Delete tokenizer
415677e -
Upload 4 files
1b9799e -
Delete GPasT-20
ada881b -
Delete config.json
0ae35c2 -
Upload tf_model.h5
dbc0ad0 -
Delete tf_model.h5
b341eeb -
Upload tf_model.h5
7e72815 -
Update config.json
6563bc3 -
Create config.json
6ace7d5 -
Update README.md
92e9479 -
Update README.md
fc44d67 -
Upload 2 files
03c3906 -
Upload 4 files
f6615ea
-
initial commit
a7c75b3