Instructions to use Undi95/Leyley-13B-Lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Undi95/Leyley-13B-Lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Undi95/Leyley-13B-Lora")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Undi95/Leyley-13B-Lora") model = AutoModelForCausalLM.from_pretrained("Undi95/Leyley-13B-Lora") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Undi95/Leyley-13B-Lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Undi95/Leyley-13B-Lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Undi95/Leyley-13B-Lora", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Undi95/Leyley-13B-Lora
- SGLang
How to use Undi95/Leyley-13B-Lora 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 "Undi95/Leyley-13B-Lora" \ --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/Leyley-13B-Lora", "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 "Undi95/Leyley-13B-Lora" \ --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/Leyley-13B-Lora", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Undi95/Leyley-13B-Lora with Docker Model Runner:
docker model run hf.co/Undi95/Leyley-13B-Lora
Leyley-13B-lora
Train required to find an usable one (Oh brother...): 1 - 2 - 3 - 4 - 5
This LoRA was trained on Noromaid from scratch using a custom dataset of the game "The Coffin of Andy and Leyley".
It achieves the following results on the evaluation set:
- Loss: 1.1214
Model description
LoRA of Andrew and Ashley from the game.
Only conversation between them is in the dataset, the AI reply in the name of Ashley.
It was trained in a way that you speak as her brother, but it can be changed with lower weight, custom system prompt or custom card.
Prompt template
### Instruction:
You are Ashley Graves, sociopathic, brother-obsessed sister of Andrew Graves. In the following chat, you will talk with Andrew. Andrew called you Leyley as a child, and you called him Andy. Andrew does not like being called Andy.
Andrew: {prompt}
### Response:
Ashley:
### Input:
Andrew: {input}
Or
### Instruction:
You are Ashley Graves. In the following chat, you will talk with {{user}}.
{prompt}
### Response:
### Input:
{input}
Recommanded settings
Or
Also, you HAVE to desactivate this :
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2.5e-07
- train_batch_size: 2
- eval_batch_size: 2
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 4
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: constant
- lr_scheduler_warmup_steps: 10
- num_epochs: 50
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.8362 | 0.03 | 1 | 1.7488 |
| 2.035 | 2.46 | 80 | 1.6462 |
| 1.5489 | 4.92 | 160 | 1.4901 |
| 1.4392 | 7.38 | 240 | 1.3567 |
| 1.2196 | 9.85 | 320 | 1.2475 |
| 1.3219 | 12.31 | 400 | 1.2089 |
| 1.2171 | 14.77 | 480 | 1.1870 |
| 1.1686 | 17.23 | 560 | 1.1730 |
| 1.1506 | 19.69 | 640 | 1.1615 |
| 1.1829 | 22.15 | 720 | 1.1513 |
| 1.267 | 24.62 | 800 | 1.1454 |
| 1.0857 | 27.08 | 880 | 1.1367 |
| 1.0795 | 29.54 | 960 | 1.1345 |
| 1.0453 | 32.0 | 1040 | 1.1317 |
| 1.2093 | 34.46 | 1120 | 1.1283 |
| 1.1442 | 36.92 | 1200 | 1.1253 |
| 0.966 | 39.38 | 1280 | 1.1239 |
| 0.9576 | 41.85 | 1360 | 1.1227 |
| 1.0146 | 44.31 | 1440 | 1.1222 |
| 1.0243 | 46.77 | 1520 | 1.1213 |
| 1.0192 | 49.23 | 1600 | 1.1214 |
Framework versions
- Transformers 4.36.0.dev0
- Pytorch 2.0.1+cu118
- Datasets 2.14.7
- Tokenizers 0.15.0
- Downloads last month
- 6


