20B Collection
Collection
Contain all my Frankenstein 20B Llama2 models, I received a lots of good feedback on them. • 8 items • Updated • 18
How to use Undi95/MM-ReMM-L2-20B with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="Undi95/MM-ReMM-L2-20B") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Undi95/MM-ReMM-L2-20B")
model = AutoModelForCausalLM.from_pretrained("Undi95/MM-ReMM-L2-20B")How to use Undi95/MM-ReMM-L2-20B with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Undi95/MM-ReMM-L2-20B"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Undi95/MM-ReMM-L2-20B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/Undi95/MM-ReMM-L2-20B
How to use Undi95/MM-ReMM-L2-20B with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Undi95/MM-ReMM-L2-20B" \
--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": "Undi95/MM-ReMM-L2-20B",
"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 "Undi95/MM-ReMM-L2-20B" \
--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": "Undi95/MM-ReMM-L2-20B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use Undi95/MM-ReMM-L2-20B with Docker Model Runner:
docker model run hf.co/Undi95/MM-ReMM-L2-20B
Merge:
layer_slices:
- model: Gryphe/MythoMax-L2-13b
start: 0
end: 16
- model: Undi95/MM-ReMM-L2-20B-Part1
start: 8
end: 20
- model: Gryphe/MythoMax-L2-13b
start: 17
end: 32
- model: Undi95/MM-ReMM-L2-20B-Part1
start: 21
end: 40
Part1 = ReMM v2.1 merged /w MythoMax low weight to keep consistency. I call this "dilution" and result show consistency and coherency without repeat/loop beside the small amount of duplicated datas.
Below is an instruction that describes a task. Write a response that completes the request.
### Instruction:
{prompt}
### Response:
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 51.14 |
| ARC (25-shot) | 60.84 |
| HellaSwag (10-shot) | 85.18 |
| MMLU (5-shot) | 56.45 |
| TruthfulQA (0-shot) | 53.33 |
| Winogrande (5-shot) | 75.77 |
| GSM8K (5-shot) | 7.73 |
| DROP (3-shot) | 18.66 |