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 144-151
Browse files- datasets/FCP-20B/encoded/028/supervised.bin +3 -0
- datasets/FCP-20B/encoded/029/body.bin +3 -0
- datasets/FCP-20B/encoded/029/ids.bin +3 -0
- datasets/FCP-20B/encoded/029/labels.bin +3 -0
- datasets/FCP-20B/encoded/029/offsets.bin +3 -0
- datasets/FCP-20B/encoded/029/supervised.bin +3 -0
- datasets/FCP-20B/encoded/030/ids.bin +3 -0
- datasets/FCP-20B/encoded/030/labels.bin +3 -0
datasets/FCP-20B/encoded/028/supervised.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5efab85363e4e556ffef44cdad14e2948583da75b3151ae0089357c7f3e19f73
|
| 3 |
+
size 4092248
|
datasets/FCP-20B/encoded/029/body.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e6774801d5754c9a62091cef9313dc9d67491ee6f2ae070a54971f7ad2984c8
|
| 3 |
+
size 4082056
|
datasets/FCP-20B/encoded/029/ids.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40d29e349995a8c7a706203397204c027174806dcf435284344940cf4e72a06b
|
| 3 |
+
size 2062016848
|
datasets/FCP-20B/encoded/029/labels.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b2595eb57f63dd0fbec4f4c53a7c0b1a2c47180de95e2b9a8b1bd310a5d4a186
|
| 3 |
+
size 2062016848
|
datasets/FCP-20B/encoded/029/offsets.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e8d6798af6805a945daebd07d30be17da002d54e3fa579b0377a9640213cbdd
|
| 3 |
+
size 4082064
|
datasets/FCP-20B/encoded/029/supervised.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3e395a02fe97a914252376b16d3d84ed71cbfaa7f6707952b3779904c41a474
|
| 3 |
+
size 4082056
|
datasets/FCP-20B/encoded/030/ids.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a2ede08374b49e87bfa142c7d684517ead0d256c51022a3add71be3e8babdbd
|
| 3 |
+
size 2056095000
|
datasets/FCP-20B/encoded/030/labels.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:68823cefa7b8225890d2018aa7dfadb626ac61adc52616513d485b1247cf7bc8
|
| 3 |
+
size 2056095000
|