Instructions to use statelesshz/test_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use statelesshz/test_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="statelesshz/test_model")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("statelesshz/test_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use statelesshz/test_model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "statelesshz/test_model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "statelesshz/test_model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/statelesshz/test_model
- SGLang
How to use statelesshz/test_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 "statelesshz/test_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": "statelesshz/test_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 "statelesshz/test_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": "statelesshz/test_model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use statelesshz/test_model with Docker Model Runner:
docker model run hf.co/statelesshz/test_model
Commit History
-
Create preprocessor_config.json
Verified signaturec48c7a4 -
Update README.md
Verified signature5efb815 -
Update config.json
Verified signature5e54fc5 -
Update README.md
Verified signatureb4279dc -
Rename pytorch_model.bin.index.json to pytorch.bin.index.json
Verified signatured3bcb4b -
Update README.md
Verified signature8fcc7ea -
Update README.md
Verified signatureffdef94 -
Update pytorch_model.bin.index.json
Verified signatureb419374 -
Delete pytorch_model-00002-of-00002.bin
Verified signaturee7bc1e1 -
Delete pytorch_model-00001-of-00002.bin
Verified signature444ea6d -
Create pytorch_model.bin.index.json
Verified signature04195b3 -
Rename pytorch_model.bin to pytorch_model-00002-of-00002.bin
Verified signature17c2c0a -
Upload pytorch_model.bin
Verified signature8e1e24f -
Rename pytorch_model.bin to pytorch_model-00001-of-00002.bin
Verified signature4bc9b77 -
Rename pytorch_model-00001-of-00002.bin to pytorch_model.bin
Verified signaturecd454e1 -
Rename pytorch_model-000xx-of-000xx.bin to pytorch_model-00001-of-00002.bin
Verified signature63d2ea0 -
Rename pytorch_model-xxxxx-of-xxxxx.bin to pytorch_model-000xx-of-000xx.bin
Verified signature8c16154 -
Rename pytorch_model-xxx-of-xxx.bin to pytorch_model-xxxxx-of-xxxxx.bin
Verified signature65237bf -
Rename pytorch_modelxxx.bin to pytorch_model-xxx-of-xxx.bin
Verified signaturedc9157e -
Rename pytorch_model to pytorch_modelxxx.bin
Verified signature166578a -
Rename pytorch_model.bin to pytorch_model
Verified signature1596f58 -
Rename Pytorch_model.bin to pytorch_model.bin
Verified signaturefdcebb4 -
Rename PyTorch_model.bin to Pytorch_model.bin
Verified signature389cf32 -
Rename PyTorch.bin to PyTorch_model.bin
Verified signaturea93f3b0 -
Rename xxx.bin to PyTorch.bin
Verified signature8f01983 -
Rename pytorch_model.bin to xxx.bin
Verified signature631a859 -
Upload pytorch_model.bin
Verified signatureb591433 -
Update README.md
Verified signaturedd678dc -
Create config.json
Verified signature3e2802f -
Update README.md
Verified signature6751a3c -
Update README.md
Verified signatureb45dafa -
initial commit
Verified signatureb62654a