Text Generation
Transformers
PyTorch
TensorBoard
llama
LoRA
QLoRa
Merged LoRA Model
text-generation-inference
Instructions to use richardr1126/sql-guanaco-13b-merged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use richardr1126/sql-guanaco-13b-merged with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="richardr1126/sql-guanaco-13b-merged")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("richardr1126/sql-guanaco-13b-merged") model = AutoModelForCausalLM.from_pretrained("richardr1126/sql-guanaco-13b-merged") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use richardr1126/sql-guanaco-13b-merged with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "richardr1126/sql-guanaco-13b-merged" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "richardr1126/sql-guanaco-13b-merged", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/richardr1126/sql-guanaco-13b-merged
- SGLang
How to use richardr1126/sql-guanaco-13b-merged 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 "richardr1126/sql-guanaco-13b-merged" \ --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": "richardr1126/sql-guanaco-13b-merged", "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 "richardr1126/sql-guanaco-13b-merged" \ --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": "richardr1126/sql-guanaco-13b-merged", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use richardr1126/sql-guanaco-13b-merged with Docker Model Runner:
docker model run hf.co/richardr1126/sql-guanaco-13b-merged
Commit ·
7490d82
1
Parent(s): 9ab40f6
Update README.md
Browse files
README.md
CHANGED
|
@@ -41,4 +41,15 @@ The following hyperparameters were used during training:
|
|
| 41 |
- Transformers 4.30.0.dev0
|
| 42 |
- Pytorch 2.0.1+cu118
|
| 43 |
- Datasets 2.13.0
|
| 44 |
-
- Tokenizers 0.13.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
- Transformers 4.30.0.dev0
|
| 42 |
- Pytorch 2.0.1+cu118
|
| 43 |
- Datasets 2.13.0
|
| 44 |
+
- Tokenizers 0.13.3
|
| 45 |
+
|
| 46 |
+
## Citation
|
| 47 |
+
|
| 48 |
+
```bibtex
|
| 49 |
+
@article{dettmers2023qlora,
|
| 50 |
+
title={QLoRA: Efficient Finetuning of Quantized LLMs},
|
| 51 |
+
author={Dettmers, Tim and Pagnoni, Artidoro and Holtzman, Ari and Zettlemoyer, Luke},
|
| 52 |
+
journal={arXiv preprint arXiv:2305.14314},
|
| 53 |
+
year={2023}
|
| 54 |
+
}
|
| 55 |
+
```
|