Instructions to use jinggu/jing-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jinggu/jing-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jinggu/jing-model")# Load model directly from transformers import AutoProcessor, AutoModelForCausalLM processor = AutoProcessor.from_pretrained("jinggu/jing-model") model = AutoModelForCausalLM.from_pretrained("jinggu/jing-model") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jinggu/jing-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jinggu/jing-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jinggu/jing-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jinggu/jing-model
- SGLang
How to use jinggu/jing-model 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 "jinggu/jing-model" \ --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": "jinggu/jing-model", "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 "jinggu/jing-model" \ --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": "jinggu/jing-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jinggu/jing-model with Docker Model Runner:
docker model run hf.co/jinggu/jing-model
Ctrl+K
- 1.52 kB
- 33 Bytes
- 70 Bytes
- 20.9 GB xet
- 6.13 GB xet
- 12.3 GB xet
- 3.06 GB xet
- 834 Bytes
- 38 MB xet
- 12.3 GB xet
- 20.6 GB xet
- 1.49 GB xet
- 27.3 GB xet
- 543 MB xet
- 319 MB xet
- 464 MB xet
- 1.23 GB xet
- 2.21 GB xet
- 854 MB xet
- 687 MB xet
- 6.41 GB xet
- 3.81 GB xet
- 1.5 GB xet
- 16.1 GB xet
- 132 Bytes
- 21.5 GB xet
- 21.5 GB xet
- 588 MB xet
- 9.98 GB xet
- 3.51 GB xet
- 26.9 kB
- 435 Bytes
- 1.8 GB xet
- 1.84 MB
- 500 kB xet
- 727 Bytes
- 1.72 GB xet
- 5 Bytes
- 4.11 GB xet
- 2.03 GB xet
- 2.02 GB xet
- 2.02 GB xet