Text Generation
Transformers
Safetensors
English
llama
causal-lm
text-generation-inference
4-bit precision
gptq
Instructions to use TheBloke/stable-vicuna-13B-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/stable-vicuna-13B-GPTQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheBloke/stable-vicuna-13B-GPTQ")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TheBloke/stable-vicuna-13B-GPTQ") model = AutoModelForCausalLM.from_pretrained("TheBloke/stable-vicuna-13B-GPTQ", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TheBloke/stable-vicuna-13B-GPTQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheBloke/stable-vicuna-13B-GPTQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheBloke/stable-vicuna-13B-GPTQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheBloke/stable-vicuna-13B-GPTQ
- SGLang
How to use TheBloke/stable-vicuna-13B-GPTQ 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 "TheBloke/stable-vicuna-13B-GPTQ" \ --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": "TheBloke/stable-vicuna-13B-GPTQ", "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 "TheBloke/stable-vicuna-13B-GPTQ" \ --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": "TheBloke/stable-vicuna-13B-GPTQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheBloke/stable-vicuna-13B-GPTQ with Docker Model Runner:
docker model run hf.co/TheBloke/stable-vicuna-13B-GPTQ
Error running the code:
1
#29 opened about 3 years ago
by
Andyrasika
How to run qlora with stable vicuna?
1
#28 opened about 3 years ago
by
Andyrasika
Could not find model in TheBloke/stable-vicuna-13B-GPTQ
3
#27 opened about 3 years ago
by
AB00k
HF/bitsandbytes load_in_4bit is now apparently live apparently! (in peft)
3
#24 opened over 3 years ago
by
2themaxx
Issue starting the webui
7
#23 opened over 3 years ago
by
Depsi
Updated special_tokens_map.json
1
#22 opened over 3 years ago
by
brandonglockaby
What are the hardware requirements for this? I am running out of memory on my RTX3060 Ti :o
2
#21 opened over 3 years ago
by
yramshev
AttributeError: 'Offload_LlamaModel' object has no attribute 'preload'
👍 2
13
#17 opened over 3 years ago
by
yramshev
Attentions are all None
2
#16 opened over 3 years ago
by
joshlevy89
OSError: Error no file named pytorch_model.bin, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory models\TheBlokestable-vicuna-13B-GPTQ.
13
#14 opened over 3 years ago
by
Squeezitgirdle
some errors occured when I use the webui who can tell me why?
4
#13 opened over 3 years ago
by
yogurt111
using with transformers
2
#11 opened over 3 years ago
by
thefaheem
Model's VRAM Utilisation
3
#10 opened over 3 years ago
by
thefaheem
Unable to load it using --pre_layer flag
5
#5 opened over 3 years ago
by
boricuapab
the model thinks its chatgpt, lobotomy is advised
2
#4 opened over 3 years ago
by
eucdee
No such file or directory: ‘models\TheBloke_stable-vicuna-13B-GPTQ\pytorch_model-00001-of-00003.bin’
9
#2 opened over 3 years ago
by
Blue-Devil
stable-vicuna-13B-GPTQ-4bit.compat.no-act-order.safetensors not compatible with "standard" settings
25
#1 opened over 3 years ago
by
vmajor