Instructions to use taesunwhang/vicuna-metamath-llemma-13b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use taesunwhang/vicuna-metamath-llemma-13b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="taesunwhang/vicuna-metamath-llemma-13b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("taesunwhang/vicuna-metamath-llemma-13b") model = AutoModelForCausalLM.from_pretrained("taesunwhang/vicuna-metamath-llemma-13b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use taesunwhang/vicuna-metamath-llemma-13b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "taesunwhang/vicuna-metamath-llemma-13b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "taesunwhang/vicuna-metamath-llemma-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/taesunwhang/vicuna-metamath-llemma-13b
- SGLang
How to use taesunwhang/vicuna-metamath-llemma-13b 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 "taesunwhang/vicuna-metamath-llemma-13b" \ --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": "taesunwhang/vicuna-metamath-llemma-13b", "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 "taesunwhang/vicuna-metamath-llemma-13b" \ --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": "taesunwhang/vicuna-metamath-llemma-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use taesunwhang/vicuna-metamath-llemma-13b with Docker Model Runner:
docker model run hf.co/taesunwhang/vicuna-metamath-llemma-13b
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,3 +3,31 @@ license: llama2
|
|
| 3 |
---
|
| 4 |
|
| 5 |
Model merge based on [lmsys/vicuna-7b-v1.5](https://huggingface.co/lmsys/vicuna-7b-v1.5) and [meta-math/MetaMath-Llemma-7B](https://huggingface.co/meta-math/MetaMath-Llemma-7B)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
Model merge based on [lmsys/vicuna-7b-v1.5](https://huggingface.co/lmsys/vicuna-7b-v1.5) and [meta-math/MetaMath-Llemma-7B](https://huggingface.co/meta-math/MetaMath-Llemma-7B)
|
| 6 |
+
|
| 7 |
+
- Forked from [lmsys/vicuna-7b-v1.5](https://huggingface.co/lmsys/vicuna-7b-v1.5)
|
| 8 |
+
- Forked from [meta-math/MetaMath-Llemma-7B](https://huggingface.co/meta-math/MetaMath-Llemma-7B)
|
| 9 |
+
|
| 10 |
+
1. Vicuna
|
| 11 |
+
|
| 12 |
+
## Model Details
|
| 13 |
+
|
| 14 |
+
Vicuna is a chat assistant trained by fine-tuning Llama 2 on user-shared conversations collected from ShareGPT.
|
| 15 |
+
|
| 16 |
+
- **Developed by:** [LMSYS](https://lmsys.org/)
|
| 17 |
+
- **Model type:** An auto-regressive language model based on the transformer architecture
|
| 18 |
+
- **License:** Llama 2 Community License Agreement
|
| 19 |
+
- **Finetuned from model:** [Llama 2](https://arxiv.org/abs/2307.09288)
|
| 20 |
+
|
| 21 |
+
### Model Sources
|
| 22 |
+
|
| 23 |
+
- **Repository:** https://github.com/lm-sys/FastChat
|
| 24 |
+
- **Blog:** https://lmsys.org/blog/2023-03-30-vicuna/
|
| 25 |
+
- **Paper:** https://arxiv.org/abs/2306.05685
|
| 26 |
+
- **Demo:** https://chat.lmsys.org/
|
| 27 |
+
|
| 28 |
+
2. MetaMath Llemma
|
| 29 |
+
|
| 30 |
+
## Model Details
|
| 31 |
+
|
| 32 |
+
MetaMath-Llemma-7B is fully fine-tuned on the MetaMathQA datasets and based on the powerful Llemma-7B model. It is glad to see using MetaMathQA datasets and change the base model from llama-2-7B to Llemma-7B can boost the MATH performance from 19.8 to **30.0**.
|
| 33 |
+
|