Instructions to use swype/deepshard-13B-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use swype/deepshard-13B-ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="swype/deepshard-13B-ft")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("swype/deepshard-13B-ft") model = AutoModelForCausalLM.from_pretrained("swype/deepshard-13B-ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use swype/deepshard-13B-ft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "swype/deepshard-13B-ft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "swype/deepshard-13B-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/swype/deepshard-13B-ft
- SGLang
How to use swype/deepshard-13B-ft 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 "swype/deepshard-13B-ft" \ --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": "swype/deepshard-13B-ft", "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 "swype/deepshard-13B-ft" \ --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": "swype/deepshard-13B-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use swype/deepshard-13B-ft with Docker Model Runner:
docker model run hf.co/swype/deepshard-13B-ft
Commit History
-
Upload with huggingface_hub
ed93222 -
Delete runs
9488815
-
Upload with huggingface_hub
25213f1 -
Upload with huggingface_hub
34c949f -
Upload with huggingface_hub
afabed3 -
Upload with huggingface_hub
cbdae52 -
Upload with huggingface_hub
84f31b5 -
Upload with huggingface_hub
b3adbe6 -
Upload with huggingface_hub
10c9988 -
Upload with huggingface_hub
0896d84 -
Upload with huggingface_hub
d3ce8b9 -
Upload with huggingface_hub
05aeb4c -
Upload with huggingface_hub
76fb399 -
Upload with huggingface_hub
52f3f33 -
Upload with huggingface_hub
dfed1fd -
Upload with huggingface_hub
9cba36e -
Upload with huggingface_hub
49a3021 -
Upload with huggingface_hub
e544fcc -
Upload with huggingface_hub
7bdc3ab -
Upload with huggingface_hub
4c0d03b
-
Upload with huggingface_hub
947c9bb -
Upload with huggingface_hub
ec700ee -
Upload with huggingface_hub
23b3629 -
Upload with huggingface_hub
adea7d7 -
Upload with huggingface_hub
7bb7222 -
Upload with huggingface_hub
7c0088f
-
Update README.md
6dd1b84 -
Update README.md
3cd80c3 -
Upload 2 files
14be91a
-
Upload with huggingface_hub
9bafb63 -
Update README.md
e7fdb13 -
Upload with huggingface_hub
e679af4 -
Delete runs
b271591 -
Delete fintuned_model
589cb8a
-
Update tokenizer_config.json
c6d3c8d -
Update config.json
0d16076 -
upload
816fc3d -
2048 finetune
6e25904
-
initial commit
Srikanth Srinivas669200e