Instructions to use Saad381/Pixa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Saad381/Pixa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Saad381/Pixa")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Saad381/Pixa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Saad381/Pixa with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Saad381/Pixa" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Saad381/Pixa", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Saad381/Pixa
- SGLang
How to use Saad381/Pixa 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 "Saad381/Pixa" \ --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": "Saad381/Pixa", "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 "Saad381/Pixa" \ --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": "Saad381/Pixa", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Saad381/Pixa with Docker Model Runner:
docker model run hf.co/Saad381/Pixa
Commit History
-
Update README.md
Verified signature459308b
-
Upload tokenizer
Verified signatured464974 -
Upload model
Verified signature8118836 -
Delete adapter_config.json
Verified signature5718e81 -
Delete chat_template.jinja
Verified signature221641d -
Delete adapter_model.safetensors
Verified signatureca2cac5 -
Delete special_tokens_map.json
Verified signature20d9e55 -
Delete README.md
Verified signature9810df8 -
Delete tokenizer.json
Verified signatureeb903c3 -
Delete tokenizer_config.json
Verified signaturedcda6a6 -
Delete .gitattributes
Verified signaturedbcfc12 -
Delete config.json
Verified signature0e714b2 -
Create config.json
Verified signaturedafed1b -
Delete config json
Verified signatureef6dd36 -
Create config json
Verified signature5536e0c
-
Update README.md
Verified signature6fa125d -
Update README.md
Verified signature8cae920 -
Upload tokenizer
Verified signaturec2c6192 -
Upload model
Verified signature0c4cfd9 -
Delete adapter_config.json
Verified signaturee98fc1b -
Delete adapter_model.safetensors
Verified signature734113e -
Delete chat_template.jinja
Verified signature34b1a73 -
Delete config.json
Verified signature58e354d -
Delete generation_config.json
Verified signature7495087 -
Delete README.md
Verified signaturecb74b62 -
Delete merges.txt
Verified signature46fab5b -
Delete model.safetensors
Verified signature6b59aba -
Delete special_tokens_map.json
Verified signaturec6320a0 -
Delete tokenizer.json
Verified signature0bc25be -
Delete tokenizer_config.json
Verified signaturee73e822 -
Delete vocab.json
Verified signature8bb6b07 -
Delete .gitattributes
Verified signature02ccd3d -
Upload tokenizer
Verified signature2f1ad29 -
Upload model
Verified signaturef418166
-
Update README.md
Verified signatured3f58d2 -
Update README.md
Verified signatureae96ffa -
Upload tokenizer
Verified signature8682912 -
Upload model
Verified signature9345766 -
initial commit
Verified signature28e8388