neurips-2023-llm-efficiency
Collection
Fine-tune models, datasets and artifacts used for llm efficiency competition.
https://llm-efficiency-challenge.github.io/challenge
• 15 items • Updated
How to use onuralp/Mistral-7B-v0.1-QLoRA-03 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="onuralp/Mistral-7B-v0.1-QLoRA-03") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("onuralp/Mistral-7B-v0.1-QLoRA-03")
model = AutoModelForCausalLM.from_pretrained("onuralp/Mistral-7B-v0.1-QLoRA-03", device_map="auto")How to use onuralp/Mistral-7B-v0.1-QLoRA-03 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "onuralp/Mistral-7B-v0.1-QLoRA-03"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "onuralp/Mistral-7B-v0.1-QLoRA-03",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/onuralp/Mistral-7B-v0.1-QLoRA-03
How to use onuralp/Mistral-7B-v0.1-QLoRA-03 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "onuralp/Mistral-7B-v0.1-QLoRA-03" \
--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": "onuralp/Mistral-7B-v0.1-QLoRA-03",
"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 "onuralp/Mistral-7B-v0.1-QLoRA-03" \
--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": "onuralp/Mistral-7B-v0.1-QLoRA-03",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use onuralp/Mistral-7B-v0.1-QLoRA-03 with Docker Model Runner:
docker model run hf.co/onuralp/Mistral-7B-v0.1-QLoRA-03
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 "onuralp/Mistral-7B-v0.1-QLoRA-03" \
--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": "onuralp/Mistral-7B-v0.1-QLoRA-03",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'This model is a fine-tuned version of mistralai/Mistral-7B-v0.1 on the None dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.767 | 0.24 | 20 | 0.6343 |
| 0.6849 | 0.48 | 40 | 0.5669 |
| 0.6761 | 0.72 | 60 | 0.5247 |
| 0.5534 | 0.96 | 80 | 0.5044 |
| 0.4757 | 1.2 | 100 | 0.5023 |
| 0.5158 | 1.44 | 120 | 0.4883 |
| 0.5414 | 1.68 | 140 | 0.4809 |
| 0.4715 | 1.92 | 160 | 0.4748 |
| 0.4037 | 2.16 | 180 | 0.4873 |
| 0.4213 | 2.4 | 200 | 0.5194 |
| 0.2988 | 2.64 | 220 | 0.6278 |
| 0.3477 | 2.88 | 240 | 0.5840 |
Base model
mistralai/Mistral-7B-v0.1
Install from pip and serve model
# Install SGLang from pip: pip install sglang# Start the SGLang server: python3 -m sglang.launch_server \ --model-path "onuralp/Mistral-7B-v0.1-QLoRA-03" \ --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": "onuralp/Mistral-7B-v0.1-QLoRA-03", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'