Instructions to use ghdi/punic-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ghdi/punic-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ghdi/punic-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ghdi/punic-model") model = AutoModelForCausalLM.from_pretrained("ghdi/punic-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ghdi/punic-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ghdi/punic-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ghdi/punic-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ghdi/punic-model
- SGLang
How to use ghdi/punic-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 "ghdi/punic-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": "ghdi/punic-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 "ghdi/punic-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": "ghdi/punic-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ghdi/punic-model with Docker Model Runner:
docker model run hf.co/ghdi/punic-model
Commit History
-
Training in progress epoch 59
e97eb55 -
Training in progress epoch 58
0f994a7 -
Training in progress epoch 57
3df5a24 -
Training in progress epoch 56
9b3f696 -
Training in progress epoch 55
9f142e3 -
Training in progress epoch 54
322eb56 -
Training in progress epoch 53
a206e74 -
Training in progress epoch 52
43b4292 -
Training in progress epoch 51
35be3fb -
Training in progress epoch 50
5a85dbb -
Training in progress epoch 49
bef140e -
Training in progress epoch 48
d4c0cec -
Training in progress epoch 47
9a82bd5 -
Training in progress epoch 46
fcc39d0 -
Training in progress epoch 45
d67e268 -
Training in progress epoch 44
9cc1012 -
Training in progress epoch 43
31c97ef -
Training in progress epoch 42
b1c429b -
Training in progress epoch 41
58a9b69 -
Training in progress epoch 40
9432c7c -
Training in progress epoch 39
4346550 -
Training in progress epoch 38
8943a11 -
Training in progress epoch 37
b6ba3b7 -
Training in progress epoch 36
8436434 -
Training in progress epoch 35
28db4f3 -
Training in progress epoch 34
8419bef -
Training in progress epoch 33
4397127 -
Training in progress epoch 32
caa3175 -
Training in progress epoch 31
2e92b09 -
Training in progress epoch 30
c40e243 -
Training in progress epoch 29
0ba4e00 -
Training in progress epoch 28
4cada4c -
Training in progress epoch 27
fdff334 -
Training in progress epoch 26
b3bde55 -
Training in progress epoch 25
3e80420 -
Training in progress epoch 24
3095a07 -
Training in progress epoch 23
0da6676 -
Training in progress epoch 22
1418f88 -
Training in progress epoch 21
f889a8e -
Training in progress epoch 20
c549cde -
Training in progress epoch 19
dc437e4 -
Training in progress epoch 18
15242ac -
Training in progress epoch 17
59dddee -
Training in progress epoch 16
be6b9d8 -
Training in progress epoch 15
f286b18 -
Training in progress epoch 14
6e00395 -
Training in progress epoch 13
0c7f835 -
Training in progress epoch 12
8056ee3 -
Training in progress epoch 11
af95f82 -
Training in progress epoch 10
225cdf5