Instructions to use Recag/12345 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Recag/12345 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Recag/12345")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Recag/12345") model = AutoModelForCausalLM.from_pretrained("Recag/12345") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Recag/12345 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Recag/12345" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Recag/12345", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Recag/12345
- SGLang
How to use Recag/12345 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 "Recag/12345" \ --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": "Recag/12345", "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 "Recag/12345" \ --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": "Recag/12345", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Recag/12345 with Docker Model Runner:
docker model run hf.co/Recag/12345
Upload checksum.chk
Browse files- checksum.chk +9 -0
checksum.chk
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
23c8050fa54c3b90a4883a9673c6d686 consolidated.00.pth
|
| 2 |
+
c5dba5e4aa9f0f529a2568ff012acadb consolidated.01.pth
|
| 3 |
+
b1f6e772c12714bcdd84e0ad229824f8 consolidated.02.pth
|
| 4 |
+
53dc4c1bacfc1e13bfbc604f6d669d42 consolidated.03.pth
|
| 5 |
+
67aca650fcde88930917ba76e6ab458a consolidated.04.pth
|
| 6 |
+
f5b934bb16d5d56d65c5af38f97ac51b consolidated.05.pth
|
| 7 |
+
bde4a55d8c9d01684a54ea0e9be885e7 consolidated.06.pth
|
| 8 |
+
1ad46388e4b0eed02b90392c14bda1d7 consolidated.07.pth
|
| 9 |
+
dc21e3aff0adc9dbb770eed299e1a2a7 params.json
|