Instructions to use ANLP-Final-Project/m0-metamath-lr-e1-e2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ANLP-Final-Project/m0-metamath-lr-e1-e2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ANLP-Final-Project/m0-metamath-lr-e1-e2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ANLP-Final-Project/m0-metamath-lr-e1-e2") model = AutoModelForCausalLM.from_pretrained("ANLP-Final-Project/m0-metamath-lr-e1-e2") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ANLP-Final-Project/m0-metamath-lr-e1-e2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ANLP-Final-Project/m0-metamath-lr-e1-e2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ANLP-Final-Project/m0-metamath-lr-e1-e2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ANLP-Final-Project/m0-metamath-lr-e1-e2
- SGLang
How to use ANLP-Final-Project/m0-metamath-lr-e1-e2 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 "ANLP-Final-Project/m0-metamath-lr-e1-e2" \ --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": "ANLP-Final-Project/m0-metamath-lr-e1-e2", "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 "ANLP-Final-Project/m0-metamath-lr-e1-e2" \ --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": "ANLP-Final-Project/m0-metamath-lr-e1-e2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ANLP-Final-Project/m0-metamath-lr-e1-e2 with Docker Model Runner:
docker model run hf.co/ANLP-Final-Project/m0-metamath-lr-e1-e2
Training in progress, step 100000
Browse files
model-00001-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4843561680
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5bfd4009031d115f7b49867ba122f5266baf9a890985961126ec997bf254c5d9
|
| 3 |
size 4843561680
|
model-00002-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4860355736
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c17db351cb0dc69c518a3865195490a5bb9e1e8ea8c70298f9657c28a66a6aa
|
| 3 |
size 4860355736
|
model-00003-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4860355808
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7732c0b4f44c8fcb183fec309c503bee4e4b4972c3e9866f675cf49c0d980008
|
| 3 |
size 4860355808
|
model-00004-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4860355808
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc1b2dfe9205a6ecc3a9e7688b7f534ec63e24fd59c5bf314cf07d8635a16fc9
|
| 3 |
size 4860355808
|
model-00005-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4860355808
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1568ba51e80fc91dc8cdcfa773a268f9b405eefa77c70513aaad6944b6169502
|
| 3 |
size 4860355808
|
model-00006-of-00006.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2685538136
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd524f797e7d26f35aee551eec510c0221cf64ddb192ad6018082878057a7aca
|
| 3 |
size 2685538136
|