Instructions to use AlekseyKorshuk/vicuna-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlekseyKorshuk/vicuna-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AlekseyKorshuk/vicuna-7b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AlekseyKorshuk/vicuna-7b") model = AutoModelForCausalLM.from_pretrained("AlekseyKorshuk/vicuna-7b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AlekseyKorshuk/vicuna-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AlekseyKorshuk/vicuna-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AlekseyKorshuk/vicuna-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AlekseyKorshuk/vicuna-7b
- SGLang
How to use AlekseyKorshuk/vicuna-7b 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 "AlekseyKorshuk/vicuna-7b" \ --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": "AlekseyKorshuk/vicuna-7b", "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 "AlekseyKorshuk/vicuna-7b" \ --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": "AlekseyKorshuk/vicuna-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AlekseyKorshuk/vicuna-7b with Docker Model Runner:
docker model run hf.co/AlekseyKorshuk/vicuna-7b
Adding `safetensors` variant of this model
#12 opened almost 2 years ago
by
SFconvertbot
I get bad results
6
#11 opened over 3 years ago
by
M14w
Multimodal
#10 opened over 3 years ago
by
autobots
Vocab size mismatch with ggml
#9 opened over 3 years ago
by
0xK1ller
A retrained Vicuna
#8 opened over 3 years ago
by
garlicdevs
Any plan to create a 13b unfiltered model?
1
#7 opened over 3 years ago
by
ai2p
Did anyone managed to convert it to ggml 4bit for llama.cpp?
1
#6 opened over 3 years ago
by
wojhoiw
Which dataset?
10
#4 opened over 3 years ago
by
anon8231489123
I made a GPTQ 4bit 128g version of this model
4
#3 opened over 3 years ago
by
TheBloke
Note: There are not official weights
👍 2
1
#2 opened over 3 years ago
by
lmzheng
Only 13b has been released, how can this be 7b?
4
#1 opened over 3 years ago
by
underlines