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 136-143
Browse files- datasets/FCP-20B/encoded/027/body.bin +3 -0
- datasets/FCP-20B/encoded/027/labels.bin +3 -0
- datasets/FCP-20B/encoded/027/offsets.bin +3 -0
- datasets/FCP-20B/encoded/027/supervised.bin +3 -0
- datasets/FCP-20B/encoded/028/body.bin +3 -0
- datasets/FCP-20B/encoded/028/ids.bin +3 -0
- datasets/FCP-20B/encoded/028/labels.bin +3 -0
- datasets/FCP-20B/encoded/028/offsets.bin +3 -0
datasets/FCP-20B/encoded/027/body.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f301208134a6d8247c47fb91935b99bf9abe15a86db2ff2494d5212ca0004a4
|
| 3 |
+
size 4087256
|
datasets/FCP-20B/encoded/027/labels.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:363a4a6bc8f87872a6ec7211f47d8bdb44544bfb508cc26e4e40215eec4cbb22
|
| 3 |
+
size 2065560748
|
datasets/FCP-20B/encoded/027/offsets.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7e24a90a8db09db58452b0c79b38000cb2cd3b8bd6ab2d7d8c0568ce3f80845
|
| 3 |
+
size 4087264
|
datasets/FCP-20B/encoded/027/supervised.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4711fb8fce0fdef7bc850e48d6cf8c0b71e9ea54c68a808f86675327ec2eae8
|
| 3 |
+
size 4087256
|
datasets/FCP-20B/encoded/028/body.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7afa9150c08e77f720d39d95dbf33c66cdeeb48cfd2f62fbbc6f172c9436972b
|
| 3 |
+
size 4092248
|
datasets/FCP-20B/encoded/028/ids.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57dea3ecce15f5ab279636ff4d41307e4089057a00bee07d30a236015476f83e
|
| 3 |
+
size 2068279324
|
datasets/FCP-20B/encoded/028/labels.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ec56b2d5e514b547d185bd4d089f840bcec90d12d516919d45f02b021c243eb
|
| 3 |
+
size 2068279324
|
datasets/FCP-20B/encoded/028/offsets.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:02da5ad049248711942dbe5598c3dd92c0cd0f6e5f85ab69d4150b0a3c3acd89
|
| 3 |
+
size 4092256
|