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 88-95
Browse files- datasets/FCP-20B/encoded/017/body.bin +3 -0
- datasets/FCP-20B/encoded/017/supervised.bin +3 -0
- datasets/FCP-20B/encoded/018/body.bin +3 -0
- datasets/FCP-20B/encoded/018/ids.bin +3 -0
- datasets/FCP-20B/encoded/018/labels.bin +3 -0
- datasets/FCP-20B/encoded/018/offsets.bin +3 -0
- datasets/FCP-20B/encoded/018/supervised.bin +3 -0
- datasets/FCP-20B/encoded/019/ids.bin +3 -0
datasets/FCP-20B/encoded/017/body.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:98d483b27f58b464d731e9ebcca63c656cb5cd92f709c6ad2b74c89f90c3cdd2
|
| 3 |
+
size 4143336
|
datasets/FCP-20B/encoded/017/supervised.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8597844cde5d63cb2b7478e6fa92b90ed6cac103e311fa96c757be0eb347f02f
|
| 3 |
+
size 4143336
|
datasets/FCP-20B/encoded/018/body.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b8223b46520d953592bc4efcb4f0095b871441213b89bda06f311d0771acc3f3
|
| 3 |
+
size 4113544
|
datasets/FCP-20B/encoded/018/ids.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d420a1f6646c0190fade684d42e99e725aca901951bf705f616a000607e1e6fd
|
| 3 |
+
size 2081164136
|
datasets/FCP-20B/encoded/018/labels.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5630c05e8ea8812a86e20c8fcadb7e6f897778e4b3a7feae65032dbc26da1473
|
| 3 |
+
size 2081164136
|
datasets/FCP-20B/encoded/018/offsets.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ce63c17c88e014305eb5ea59577996410c3c26a3a3249416d4ebfc75f25fc97
|
| 3 |
+
size 4113552
|
datasets/FCP-20B/encoded/018/supervised.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:311cb77da31866dd4f2ef9225d01e6b344adf60614f2a632f896261aabbd77e0
|
| 3 |
+
size 4113544
|
datasets/FCP-20B/encoded/019/ids.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4182e8f04f39e90e32a8e468b18553b468dcc4be01a9f5697c1e52856a6e48a5
|
| 3 |
+
size 2069671988
|