Instructions to use fpadovani/ads_sh1_fr_13 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fpadovani/ads_sh1_fr_13 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="fpadovani/ads_sh1_fr_13")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("fpadovani/ads_sh1_fr_13") model = AutoModelForCausalLM.from_pretrained("fpadovani/ads_sh1_fr_13") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use fpadovani/ads_sh1_fr_13 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fpadovani/ads_sh1_fr_13" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fpadovani/ads_sh1_fr_13", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/fpadovani/ads_sh1_fr_13
- SGLang
How to use fpadovani/ads_sh1_fr_13 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 "fpadovani/ads_sh1_fr_13" \ --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": "fpadovani/ads_sh1_fr_13", "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 "fpadovani/ads_sh1_fr_13" \ --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": "fpadovani/ads_sh1_fr_13", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use fpadovani/ads_sh1_fr_13 with Docker Model Runner:
docker model run hf.co/fpadovani/ads_sh1_fr_13
Ctrl+K
- check-1
- check-11
- check-123
- check-1366
- check-17
- check-184
- check-2
- check-2040
- check-25
- check-275
- check-3
- check-37
- check-410
- check-5
- check-55
- check-612
- check-7
- check-82
- check-915
- checkpoint-103
- checkpoint-1030
- checkpoint-1133
- checkpoint-1236
- checkpoint-1339
- checkpoint-1442
- checkpoint-1545
- checkpoint-1648
- checkpoint-1751
- checkpoint-1854
- checkpoint-1957
- checkpoint-206
- checkpoint-2060
- checkpoint-309
- checkpoint-412
- checkpoint-515
- checkpoint-618
- checkpoint-721
- checkpoint-824
- checkpoint-927
- 1.52 kB
- 15 Bytes
- 2.34 kB
- 775 Bytes
- 142 Bytes
- 393 MB xet
- 145 Bytes
- 1.11 MB
- 1.35 kB
- 5.91 kB xet
- 3.14 MB