Instructions to use meihant/AnonymousModel-mht with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use meihant/AnonymousModel-mht with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="meihant/AnonymousModel-mht")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("meihant/AnonymousModel-mht", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use meihant/AnonymousModel-mht with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "meihant/AnonymousModel-mht" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meihant/AnonymousModel-mht", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/meihant/AnonymousModel-mht
- SGLang
How to use meihant/AnonymousModel-mht 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 "meihant/AnonymousModel-mht" \ --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": "meihant/AnonymousModel-mht", "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 "meihant/AnonymousModel-mht" \ --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": "meihant/AnonymousModel-mht", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use meihant/AnonymousModel-mht with Docker Model Runner:
docker model run hf.co/meihant/AnonymousModel-mht
Download checkpoints.json from meihant/AnonymousModel-mht: direct link, hf CLI and curl.
- Browser
- Download file 4.39 kB
-
https://huggingface.co/meihant/AnonymousModel-mht/resolve/main/checkpoints.json
- Command line
-
hf download hf://meihant/AnonymousModel-mht/checkpoints.json
-
curl -L -o checkpoints.json https://huggingface.co/meihant/AnonymousModel-mht/resolve/main/checkpoints.json
4.39 kB
| [ | |
| { | |
| "subfolder": "Keen-qwen4b-20b/checkpoint-2253", | |
| "step": 2253, | |
| "body_tokens": 2000696711, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Keen-qwen4b-20b/checkpoint-4453", | |
| "step": 4453, | |
| "body_tokens": 4000757038, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Keen-qwen4b-20b/checkpoint-6701", | |
| "step": 6701, | |
| "body_tokens": 6000082648, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Keen-qwen4b-20b/checkpoint-8956", | |
| "step": 8956, | |
| "body_tokens": 8000600622, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Keen-qwen4b-20b/checkpoint-11202", | |
| "step": 11202, | |
| "body_tokens": 10000294657, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Keen-qwen4b-20b/checkpoint-13449", | |
| "step": 13449, | |
| "body_tokens": 12000429703, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Keen-qwen4b-20b/checkpoint-15698", | |
| "step": 15698, | |
| "body_tokens": 14000083680, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Keen-qwen4b-20b/checkpoint-17953", | |
| "step": 17953, | |
| "body_tokens": 16000387372, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Keen-qwen4b-20b/checkpoint-20218", | |
| "step": 20218, | |
| "body_tokens": 18000030679, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Keen-qwen4b-20b/checkpoint-22478", | |
| "step": 22478, | |
| "body_tokens": 20000557588, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Vanilla-qwen4b-20b/checkpoint-1910", | |
| "step": 1910, | |
| "body_tokens": 2000045638, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Vanilla-qwen4b-20b/checkpoint-3818", | |
| "step": 3818, | |
| "body_tokens": 4000211289, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Vanilla-qwen4b-20b/checkpoint-5726", | |
| "step": 5726, | |
| "body_tokens": 6000159072, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Vanilla-qwen4b-20b/checkpoint-7635", | |
| "step": 7635, | |
| "body_tokens": 8000913248, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Vanilla-qwen4b-20b/checkpoint-9543", | |
| "step": 9543, | |
| "body_tokens": 10000619298, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Vanilla-qwen4b-20b/checkpoint-11452", | |
| "step": 11452, | |
| "body_tokens": 12000591962, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Vanilla-qwen4b-20b/checkpoint-13362", | |
| "step": 13362, | |
| "body_tokens": 14000166403, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Vanilla-qwen4b-20b/checkpoint-15273", | |
| "step": 15273, | |
| "body_tokens": 16000320768, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Vanilla-qwen4b-20b/checkpoint-17188", | |
| "step": 17188, | |
| "body_tokens": 18000257314, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| }, | |
| { | |
| "subfolder": "Vanilla-qwen4b-20b/checkpoint-19106", | |
| "step": 19106, | |
| "body_tokens": 20000220345, | |
| "final": false, | |
| "layout": { | |
| "tensors": 426, | |
| "serialized_parameters": 4205751296 | |
| } | |
| } | |
| ] | |