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/Vanilla-20B artifacts 440-447
Browse files- datasets/Vanilla-20B/encoded/088/body.bin +3 -0
- datasets/Vanilla-20B/encoded/088/ids.bin +3 -0
- datasets/Vanilla-20B/encoded/088/labels.bin +3 -0
- datasets/Vanilla-20B/encoded/088/offsets.bin +3 -0
- datasets/Vanilla-20B/encoded/088/supervised.bin +3 -0
- datasets/Vanilla-20B/encoded/089/ids.bin +3 -0
- datasets/Vanilla-20B/encoded/089/labels.bin +3 -0
- datasets/Vanilla-20B/encoded/089/offsets.bin +3 -0
datasets/Vanilla-20B/encoded/088/body.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0833c0d0a89f29e80f41b0969e923c9f5d2d70936100b1633b8d5c110e4098c
|
| 3 |
+
size 4080792
|
datasets/Vanilla-20B/encoded/088/ids.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df86d03e69fccb8414e6f5838a4393a6a81005ed620bf7f7f8f1ca7ea10adba7
|
| 3 |
+
size 831756932
|
datasets/Vanilla-20B/encoded/088/labels.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28658fb73338b75e1e97e93069431994bbf51a7f9f17712f89ca685cd1f09951
|
| 3 |
+
size 831756932
|
datasets/Vanilla-20B/encoded/088/offsets.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0ea4881d8f811015ea0021787da8ed965ba6787c324bd0a7bc48938a2655646
|
| 3 |
+
size 4080800
|
datasets/Vanilla-20B/encoded/088/supervised.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0833c0d0a89f29e80f41b0969e923c9f5d2d70936100b1633b8d5c110e4098c
|
| 3 |
+
size 4080792
|
datasets/Vanilla-20B/encoded/089/ids.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:79c33925be613061db6a29b6968f1a2d74704289f6ad58998b2096c60554d25b
|
| 3 |
+
size 825524708
|
datasets/Vanilla-20B/encoded/089/labels.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6bab485d59d2e909244fabeb0ae52f02e80b71b347595a44b16ea24269a506c8
|
| 3 |
+
size 825524708
|
datasets/Vanilla-20B/encoded/089/offsets.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a937d6518b0c89d2436e9179a54874f570c84127d15b3b7c13f2985c509d592
|
| 3 |
+
size 4055136
|