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/FCP-20B artifacts 48-55
Browse files- datasets/FCP-20B/encoded/009/body.bin +3 -0
- datasets/FCP-20B/encoded/009/supervised.bin +3 -0
- datasets/FCP-20B/encoded/010/body.bin +3 -0
- datasets/FCP-20B/encoded/010/ids.bin +3 -0
- datasets/FCP-20B/encoded/010/labels.bin +3 -0
- datasets/FCP-20B/encoded/010/offsets.bin +3 -0
- datasets/FCP-20B/encoded/010/supervised.bin +3 -0
- datasets/FCP-20B/encoded/011/ids.bin +3 -0
datasets/FCP-20B/encoded/009/body.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c0c8f23a91e4dce6b3f925f4e9f6c04001c3c3ab2d714ca995b7ce0ffc0efa8
|
| 3 |
+
size 4154336
|
datasets/FCP-20B/encoded/009/supervised.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b1fcac01ee3393a24d8bf3776c06533dbf2b1a4448c4de6efa5de14f16ca2c4
|
| 3 |
+
size 4154336
|
datasets/FCP-20B/encoded/010/body.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dcb54152e0a83207e3e50e545bcdf70120989b4ce70b304b65fca080450a692c
|
| 3 |
+
size 4152040
|
datasets/FCP-20B/encoded/010/ids.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aacb701e8a6e92b252372a2c13379535aa6e2642af862e76b74ec502bcb779e6
|
| 3 |
+
size 2103548348
|
datasets/FCP-20B/encoded/010/labels.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28784ccacc371acf5d0ec4fc44370f858b605b496027baee9f37f6783c7b5db9
|
| 3 |
+
size 2103548348
|
datasets/FCP-20B/encoded/010/offsets.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2ab8424c935f15524eed583c6f62a51186ab28939300a178663b8dec347cddf
|
| 3 |
+
size 4152048
|
datasets/FCP-20B/encoded/010/supervised.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb59e840312d92d4de17988c84dd42921d69c4c9c8748dc5d84fae697bb8fe46
|
| 3 |
+
size 4152040
|
datasets/FCP-20B/encoded/011/ids.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2bde5b8060b959bed551dc90cc4cd78a67a1ec2d4980abd6a550dafd91ae718b
|
| 3 |
+
size 2108075552
|