meta-math/MetaMathQA
Viewer β’ Updated β’ 395k β’ 63.3k β’ 457
How to use uukuguy/speechless-code-mistral-7b-v2.0 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="uukuguy/speechless-code-mistral-7b-v2.0") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("uukuguy/speechless-code-mistral-7b-v2.0")
model = AutoModelForCausalLM.from_pretrained("uukuguy/speechless-code-mistral-7b-v2.0")How to use uukuguy/speechless-code-mistral-7b-v2.0 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "uukuguy/speechless-code-mistral-7b-v2.0"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "uukuguy/speechless-code-mistral-7b-v2.0",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/uukuguy/speechless-code-mistral-7b-v2.0
How to use uukuguy/speechless-code-mistral-7b-v2.0 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "uukuguy/speechless-code-mistral-7b-v2.0" \
--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": "uukuguy/speechless-code-mistral-7b-v2.0",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "uukuguy/speechless-code-mistral-7b-v2.0" \
--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": "uukuguy/speechless-code-mistral-7b-v2.0",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use uukuguy/speechless-code-mistral-7b-v2.0 with Docker Model Runner:
docker model run hf.co/uukuguy/speechless-code-mistral-7b-v2.0
Code: https://github.com/uukuguy/speechless
Use the following dataset to fine-tune mistralai/Mistral-7B-v0.1 in order to improve the model's reasoning and planning abilities.
Total 343,370 samples 603 MB
| Metric | Value |
|---|---|
| humaneval-python |
CodeLlama-34B-Python: 53.29
CodeLlama-34B-Instruct: 50.79
CodeLlama-13B-Instruct: 50.6
CodeLlama-34B: 45.11
CodeLlama-13B-Python: 42.89
CodeLlama-13B: 35.07
| Metric | Value |
|---|---|
| ARC | |
| HellaSwag | |
| MMLU | |
| TruthfulQA | |
| Average |