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 16-23
Browse files- datasets/FCP-20B/encoded/003/body.bin +3 -0
- datasets/FCP-20B/encoded/003/labels.bin +3 -0
- datasets/FCP-20B/encoded/003/offsets.bin +3 -0
- datasets/FCP-20B/encoded/003/supervised.bin +3 -0
- datasets/FCP-20B/encoded/004/body.bin +3 -0
- datasets/FCP-20B/encoded/004/ids.bin +3 -0
- datasets/FCP-20B/encoded/004/labels.bin +3 -0
- datasets/FCP-20B/encoded/004/offsets.bin +3 -0
datasets/FCP-20B/encoded/003/body.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a00eabf4291887cd9b2e4f0799c616daf67e6d3e8fcbbee9596023276ed56315
|
| 3 |
+
size 4168864
|
datasets/FCP-20B/encoded/003/labels.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4c1753b57dc9345bb54abf77258effd3092b1f2728be89b9c9de6ea5cb6367d5
|
| 3 |
+
size 2115435180
|
datasets/FCP-20B/encoded/003/offsets.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39480e2cc50e98d1704cfa78e935d295f08dfe253e8bf8ff2fb98f895834f8d7
|
| 3 |
+
size 4168872
|
datasets/FCP-20B/encoded/003/supervised.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef7cf2a4c42fed095162d19e789cd2f2fadf44baaa5d968415f30480fa344ee0
|
| 3 |
+
size 4168864
|
datasets/FCP-20B/encoded/004/body.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43777cc69dbca120e0f86b1abda94958d65884adec198eb11e4aa5403208a991
|
| 3 |
+
size 4186360
|
datasets/FCP-20B/encoded/004/ids.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:52f9b011435fa3c27e061dea49d32bd844d42930c8a7cd565f53dcd8495563e9
|
| 3 |
+
size 2125719360
|
datasets/FCP-20B/encoded/004/labels.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa007ee90f14b26e4a945eae47a5aefe1c39ddd881955652ad74710182391e91
|
| 3 |
+
size 2125719360
|
datasets/FCP-20B/encoded/004/offsets.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2599d1e72399557e6d70e9deb3a25f27f652875a860f080fe99e861d2f7e4736
|
| 3 |
+
size 4186368
|