Instructions to use kazssym/stablelm-3b-4e1t-onnx-float16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kazssym/stablelm-3b-4e1t-onnx-float16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kazssym/stablelm-3b-4e1t-onnx-float16")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("kazssym/stablelm-3b-4e1t-onnx-float16") model = AutoModelForCausalLM.from_pretrained("kazssym/stablelm-3b-4e1t-onnx-float16", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kazssym/stablelm-3b-4e1t-onnx-float16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kazssym/stablelm-3b-4e1t-onnx-float16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kazssym/stablelm-3b-4e1t-onnx-float16", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kazssym/stablelm-3b-4e1t-onnx-float16
- SGLang
How to use kazssym/stablelm-3b-4e1t-onnx-float16 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 "kazssym/stablelm-3b-4e1t-onnx-float16" \ --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": "kazssym/stablelm-3b-4e1t-onnx-float16", "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 "kazssym/stablelm-3b-4e1t-onnx-float16" \ --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": "kazssym/stablelm-3b-4e1t-onnx-float16", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kazssym/stablelm-3b-4e1t-onnx-float16 with Docker Model Runner:
docker model run hf.co/kazssym/stablelm-3b-4e1t-onnx-float16
Commit History
-
Modify README
cf12001 -
Update config.json
708599d -
Modify .gitattributes
86ef89e
-
Add .gitignore
5c6a17d -
Add json files
6025667
-
Upload model.onnx_data with huggingface_hub
Verified signature800d388 -
Upload model.onnx with huggingface_hub
Verified signaturee866bf6 -
Add .gitattributes
ed52b5e -
Upload model.onnx with huggingface_hub
Verified signaturef57c06d
-
Enable large file storage for .onnx.data files
- Adds .onnx.data to .gitattributes with filter=lfs option. This commit enables Git Large File Storage (LFS) for .onnx.data files. LFS stores large files efficiently and helps improve repository performance and manageability.1ecc395
-
initial commit
Verified signature78082c6