Instructions to use ZhihaiLLM/wisdomInterrogatory with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ZhihaiLLM/wisdomInterrogatory with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ZhihaiLLM/wisdomInterrogatory", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("ZhihaiLLM/wisdomInterrogatory", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ZhihaiLLM/wisdomInterrogatory with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ZhihaiLLM/wisdomInterrogatory" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ZhihaiLLM/wisdomInterrogatory", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ZhihaiLLM/wisdomInterrogatory
- SGLang
How to use ZhihaiLLM/wisdomInterrogatory 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 "ZhihaiLLM/wisdomInterrogatory" \ --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": "ZhihaiLLM/wisdomInterrogatory", "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 "ZhihaiLLM/wisdomInterrogatory" \ --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": "ZhihaiLLM/wisdomInterrogatory", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ZhihaiLLM/wisdomInterrogatory with Docker Model Runner:
docker model run hf.co/ZhihaiLLM/wisdomInterrogatory
Commit History
-
Upload pytorch_model-00008-of-00008.bin with huggingface_hub
b4bedcb -
Upload pytorch_model-00007-of-00008.bin with huggingface_hub
b2d86d5 -
Upload pytorch_model-00006-of-00008.bin with huggingface_hub
a15008e -
Upload pytorch_model-00005-of-00008.bin with huggingface_hub
a1dda7a
-
Upload pytorch_model-00004-of-00008.bin with huggingface_hub
07e7232 -
Upload pytorch_model-00003-of-00008.bin with huggingface_hub
ddcf27c -
Upload pytorch_model-00002-of-00008.bin with huggingface_hub
5dd9086 -
Upload pytorch_model-00001-of-00008.bin with huggingface_hub
fb1d7e4
-
Upload pytorch_model-00001-of-00008.bin with huggingface_hub
a7f1572
-
Upload test.txt with huggingface_hub
10734e8 -
Upload README.md
58dace3
-
upload
2fd2361 -
initial commit
7f01048