How to use from
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 "castorini/rank_vicuna_7b_v1_noda_fp16" \
    --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": "castorini/rank_vicuna_7b_v1_noda_fp16",
		"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 "castorini/rank_vicuna_7b_v1_noda_fp16" \
        --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": "castorini/rank_vicuna_7b_v1_noda_fp16",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Quick Links

RankVicuna (No Data Augmentation - FP16) Model Card

Model Details

RankVicuna is a chat assistant trained by fine-tuning Llama 2 on user-shared conversations collected from ShareGPT.

  • Developed by: Castorini
  • Model type: An auto-regressive language model based on the transformer architecture
  • License: Llama 2 Community License Agreement
  • Finetuned from base model: Llama 2

This specific model is a 7B variant and is trained without data augmentation. It is also worth noting that it is converted to FP16.

Model Sources

Uses

The primary use of RankVicuna is research at the intersection of large language models and retrieval. The primary intended users of the model are researchers and hobbyists in natural language processing and information retrieval.

Training Details

RankVicuna is finetuned from lmsys/vicuna-7b-v1.5 with supervised instruction fine-tuning.

Evaluation

RankVicuna is currently evaluated on DL19/DL20. See more details in our paper.

Downloads last month
355
Inference Providers NEW

Papers for castorini/rank_vicuna_7b_v1_noda_fp16