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/U-Amethyst-20B with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="Undi95/U-Amethyst-20B") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Undi95/U-Amethyst-20B")
model = AutoModelForCausalLM.from_pretrained("Undi95/U-Amethyst-20B", device_map="auto")How to use Undi95/U-Amethyst-20B with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Undi95/U-Amethyst-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/U-Amethyst-20B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/Undi95/U-Amethyst-20B
How to use Undi95/U-Amethyst-20B with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Undi95/U-Amethyst-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/U-Amethyst-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/U-Amethyst-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/U-Amethyst-20B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use Undi95/U-Amethyst-20B with Docker Model Runner:
docker model run hf.co/Undi95/U-Amethyst-20B
Attempt to recreate Amethyst-13B but in 20B. The two model was glued together with a sparkle of Unholy.
In addition, LimaRP v3 was used, is it recommanded to read the documentation.
This repo contains fp16 files of Amethyst-20B.
Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
{prompt}
### Response:
You can follow these instruction format settings in SillyTavern. Replace tiny with your desired response length:
Special thanks to Sushi.
If you want to support me, you can here.
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 50.38 |
| ARC (25-shot) | 62.2 |
| HellaSwag (10-shot) | 83.11 |
| MMLU (5-shot) | 55.88 |
| TruthfulQA (0-shot) | 53.2 |
| Winogrande (5-shot) | 74.19 |
| GSM8K (5-shot) | 5.31 |
| DROP (3-shot) | 18.75 |