Instructions to use qiuhuachuan/MeChat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use qiuhuachuan/MeChat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="qiuhuachuan/MeChat", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("qiuhuachuan/MeChat", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use qiuhuachuan/MeChat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "qiuhuachuan/MeChat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "qiuhuachuan/MeChat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/qiuhuachuan/MeChat
- SGLang
How to use qiuhuachuan/MeChat 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 "qiuhuachuan/MeChat" \ --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": "qiuhuachuan/MeChat", "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 "qiuhuachuan/MeChat" \ --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": "qiuhuachuan/MeChat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use qiuhuachuan/MeChat with Docker Model Runner:
docker model run hf.co/qiuhuachuan/MeChat
Commit History
-
Update README.md
Verified signature933b625
-
Update README.md
9126122
-
Update README.md
96ddc85 -
Upload SMILE_method.png
3611c69 -
Update README.md
698bd6b
-
Update README.md
b2092f7 -
Upload 13 files
e18b6c6
-
Update README.md
95a1997 -
Update README.md
84575e3 -
delete file
40762c0 -
delete file
b759512
-
Upload adapter_config.json
c4ba07b -
update adapter files
4be9a9c
-
Update README.md
9d3cc64
-
Update README.md
d3b7be2 -
Update README.md
62c3ca4 -
Update README.md
7d7e164 -
Update README.md
fe4813f -
Update README.md
9e385c8 -
Update README.md
3e93681 -
Upload README.md
3257e85 -
Upload 2 files
0b5da05 -
Update README.md
7ff3bb9 -
initial commit
98c87c7