Instructions to use Xibanya/DS9Bot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Xibanya/DS9Bot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Xibanya/DS9Bot")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Xibanya/DS9Bot") model = AutoModelForCausalLM.from_pretrained("Xibanya/DS9Bot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Xibanya/DS9Bot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Xibanya/DS9Bot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Xibanya/DS9Bot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Xibanya/DS9Bot
- SGLang
How to use Xibanya/DS9Bot 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 "Xibanya/DS9Bot" \ --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": "Xibanya/DS9Bot", "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 "Xibanya/DS9Bot" \ --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": "Xibanya/DS9Bot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Xibanya/DS9Bot with Docker Model Runner:
docker model run hf.co/Xibanya/DS9Bot
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.0b29c6c
-
Upload pytorch_model.bin with git-lfs
5b3310e -
Upload pytorch_model.bin with git-lfs
132035f
-
Upload pytorch_model.bin with git-lfs
eefab51 -
Upload README.md
53201f2 -
Update trainer_state.json
4c39b3e -
Upload all_results.json
a51c00e -
Upload eval_results.json
0a2b628 -
Upload pytorch_model.bin with git-lfs
33bcc59 -
Upload pytorch_model.bin with git-lfs
f791f5a
-
Update tokenizer_config.json
2a2c934 -
Update tokenizer_config.json
51c056b -
Update config.json
05f620f -
Update tokenizer_config.json
46dfef5 -
Update tokenizer_config.json
fd81f0c -
Update config.json
22ba2c9 -
Update tokenizer_config.json
f07346d -
Upload special_tokens_map.json
3143413 -
Update tokenizer_config.json
1444938 -
Update trainer_state.json
052a6e2 -
Upload added_tokens.json
06715f5 -
Upload merges.txt
52eb1ba -
Upload eval_results.json
e024a44 -
Upload config.json
908d3c9 -
Upload all_results.json
9e3094a -
Upload added_tokens.json
408f658 -
Upload vocab.json
afb9e8b -
Upload training_args.bin with git-lfs
cbf24eb -
Upload trainer_state.json
6f8664c -
Upload train_results.json
029ca94 -
Upload tokenizer_config.json
89e4d8c -
Upload tokenizer.json
1693f91 -
Upload README.md
9565d95 -
Upload pytorch_model.bin with git-lfs
7a3002a -
initial commit
af9f4c9