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 56-63
Browse files- datasets/FCP-20B/encoded/011/body.bin +3 -0
- datasets/FCP-20B/encoded/011/labels.bin +3 -0
- datasets/FCP-20B/encoded/011/offsets.bin +3 -0
- datasets/FCP-20B/encoded/011/supervised.bin +3 -0
- datasets/FCP-20B/encoded/012/body.bin +3 -0
- datasets/FCP-20B/encoded/012/ids.bin +3 -0
- datasets/FCP-20B/encoded/012/labels.bin +3 -0
- datasets/FCP-20B/encoded/012/offsets.bin +3 -0
datasets/FCP-20B/encoded/011/body.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:038018d1c70ec2825fd48131da5211b1663c95f85c334b52d793c100d772289e
|
| 3 |
+
size 4158800
|
datasets/FCP-20B/encoded/011/labels.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6aa86a57d620299a71c1b5bbe6040321c2314b039a7295cfd6aeeb568fcaed69
|
| 3 |
+
size 2108075552
|
datasets/FCP-20B/encoded/011/offsets.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d811b68a27c933d1c2d0af23ff2d22d5753f103e4fe81eb15d27f78221a33c01
|
| 3 |
+
size 4158808
|
datasets/FCP-20B/encoded/011/supervised.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8f305a39ca452ac51e6ad74c25d5168e9209bcb68ea45d0a3aefc62c7d43dbb
|
| 3 |
+
size 4158800
|
datasets/FCP-20B/encoded/012/body.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c925087b35cec04aca66ba9b0341eeca1b8c255f0a06b23f7e844c7fd0f4020d
|
| 3 |
+
size 4111344
|
datasets/FCP-20B/encoded/012/ids.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e554dd03d9a48a7c1dea459283423fd0ee94a33a2ca8abff3e9dae85aeb18545
|
| 3 |
+
size 2081592332
|
datasets/FCP-20B/encoded/012/labels.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2bdd2005fca373668ddc1d993502573c91348a5deb1f41dbd196cb55befe1d73
|
| 3 |
+
size 2081592332
|
datasets/FCP-20B/encoded/012/offsets.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ffe3d4a37be21346fc2a9ff85cc7c6544e70c3c45ab7f98f179e9d66ec89c836
|
| 3 |
+
size 4111352
|