Instructions to use craa/exceptions with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use craa/exceptions with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="craa/exceptions")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("craa/exceptions", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use craa/exceptions with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "craa/exceptions" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "craa/exceptions", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/craa/exceptions
- SGLang
How to use craa/exceptions 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 "craa/exceptions" \ --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": "craa/exceptions", "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 "craa/exceptions" \ --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": "craa/exceptions", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use craa/exceptions with Docker Model Runner:
docker model run hf.co/craa/exceptions
Ctrl+K
- high_0_1208
- high_0_495
- high_0_634
- high_0_6910
- high_0_8397
- high_1000_1208
- high_1000_495
- high_1000_634
- high_1000_6910
- high_1000_8397
- high_100_1208
- high_100_495
- high_100_634
- high_100_6910
- high_100_8397
- high_10_1208
- high_10_495
- high_10_634
- high_10_6910
- high_10_8397
- high_128_1208
- high_128_495
- high_128_634
- high_128_6910
- high_128_8397
- high_1500_1208
- high_1500_495
- high_1500_634
- high_1500_6910
- high_1500_8397
- high_16_1208
- high_16_495
- high_16_634
- high_16_6910
- high_16_8397
- high_1_1208
- high_1_495
- high_1_634
- high_1_6910
- high_1_8397
- high_2000_1208
- high_2000_495
- high_2000_634
- high_2000_6910
- high_2000_8397
- high_256_1208
- high_256_495
- high_256_634
- high_256_6910
- high_256_8397