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
Add datasets/KLLM-20B artifacts 688-688
Browse files
datasets/KLLM-20B/packing/source2b/097.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"passed": true,
|
| 3 |
+
"preparer_sha256": "e73b707d07ecfe50ee3d61a5c051c4a73fe4ae35cd73d38e3685642cd83d9d79",
|
| 4 |
+
"method": "kllm",
|
| 5 |
+
"shard": 97,
|
| 6 |
+
"path": "/cluster/work/projects/nn9851k/mht/corpora/main20b_source2b_20261105/kllm/097.pkl",
|
| 7 |
+
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
| 8 |
+
"source_manifest_sha256": "3467ec6846c9a44f645a2d387ed158f5f5f8f1898e5e5945a318f829037ee6f0",
|
| 9 |
+
"records": 0,
|
| 10 |
+
"excluded": 0,
|
| 11 |
+
"outside_budget_records": 220416,
|
| 12 |
+
"chunks": [],
|
| 13 |
+
"annotation_proofs": [
|
| 14 |
+
{
|
| 15 |
+
"path": "/cluster/work/projects/nn9851k/mht/kllm_20b_gpu/receipts/0388.json",
|
| 16 |
+
"sha256": "e40cdc1adb33c468194d250354bd769aef0fd6c3f8e88bfeb4afbd29da0ff08b"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"path": "/cluster/work/projects/nn9851k/mht/kllm_20b_gpu/receipts/0389.json",
|
| 20 |
+
"sha256": "85522596b0fac40e2f87d14e71631237c8839420633bd3073456cd401d692953"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"path": "/cluster/work/projects/nn9851k/mht/kllm_20b_gpu/receipts/0390.json",
|
| 24 |
+
"sha256": "3ab25e3a6a9ee4807b613690d20895985d06eb450bc788d26cf5bb9d2b80de84"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"path": "/cluster/work/projects/nn9851k/mht/kllm_20b_gpu/receipts/0391.json",
|
| 28 |
+
"sha256": "d17fcf129574a54197418413ed8814128834e62b8e9e44c32edd05566c4f1162"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"seconds": 0.002547529060393572
|
| 32 |
+
}
|