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 416-423
Browse files- datasets/KLLM-20B/source2b/counts/022.bin +3 -0
- datasets/KLLM-20B/source2b/counts/023.bin +3 -0
- datasets/KLLM-20B/source2b/counts/024.bin +3 -0
- datasets/KLLM-20B/source2b/counts/025.bin +3 -0
- datasets/KLLM-20B/source2b/counts/026.bin +3 -0
- datasets/KLLM-20B/source2b/counts/027.bin +3 -0
- datasets/KLLM-20B/source2b/counts/028.bin +3 -0
- datasets/KLLM-20B/source2b/counts/029.bin +3 -0
datasets/KLLM-20B/source2b/counts/022.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cfe76ac4797280139f6bad69edb65f33e703038b29c545436f462e8f1f235116
|
| 3 |
+
size 4105848
|
datasets/KLLM-20B/source2b/counts/023.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea987e6e2a034904ccddaff9780e046b69b766aba762205518ca465a71f86b94
|
| 3 |
+
size 4111080
|
datasets/KLLM-20B/source2b/counts/024.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:319051c7182a8c319f737dcf88cee200a2bbffe31e65db4c9caac968f59d5450
|
| 3 |
+
size 4119264
|
datasets/KLLM-20B/source2b/counts/025.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d8402f38e2c8c5483b207254e5b303d5337acb6b099feb3a365cc4846d96971f
|
| 3 |
+
size 4107080
|
datasets/KLLM-20B/source2b/counts/026.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aba6cc7677bd0bf66c4ec6714c0b385d71518aba6ba9d341f9ef02103b690c53
|
| 3 |
+
size 4087656
|
datasets/KLLM-20B/source2b/counts/027.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c9181caf73c0735a70a7f7ce9d4b5d7d031fc1913c47458fea794d7afd2b6ab
|
| 3 |
+
size 4087256
|
datasets/KLLM-20B/source2b/counts/028.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7afa9150c08e77f720d39d95dbf33c66cdeeb48cfd2f62fbbc6f172c9436972b
|
| 3 |
+
size 4092248
|
datasets/KLLM-20B/source2b/counts/029.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59b8e58413c5b16cd24330336753ed5c02e223afd5e364bafb1cc5538f93270d
|
| 3 |
+
size 4082056
|