Instructions to use DS-Archive/airoboros-2.2.1-y34b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DS-Archive/airoboros-2.2.1-y34b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DS-Archive/airoboros-2.2.1-y34b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DS-Archive/airoboros-2.2.1-y34b") model = AutoModelForCausalLM.from_pretrained("DS-Archive/airoboros-2.2.1-y34b") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use DS-Archive/airoboros-2.2.1-y34b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DS-Archive/airoboros-2.2.1-y34b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DS-Archive/airoboros-2.2.1-y34b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DS-Archive/airoboros-2.2.1-y34b
- SGLang
How to use DS-Archive/airoboros-2.2.1-y34b 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 "DS-Archive/airoboros-2.2.1-y34b" \ --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": "DS-Archive/airoboros-2.2.1-y34b", "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 "DS-Archive/airoboros-2.2.1-y34b" \ --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": "DS-Archive/airoboros-2.2.1-y34b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use DS-Archive/airoboros-2.2.1-y34b with Docker Model Runner:
docker model run hf.co/DS-Archive/airoboros-2.2.1-y34b
airoboros-2.2.1-y34b
Unofficial training of Jon Durbin's powerful airoboros 2.2.1 dataset on Charles Goddard's Llama-fied Yi 34B model, aiming to bring the instruction-following capabilities of the airoboros dataset to the new Yi 34B foundational model.
As a 34B model with grouped-query attention, users will be able to conduct inference on the model with 4bit quantization on a single 24gb consumer GPU.
This Yi model is "Llama-fied", meaning the keys are renamed to match those used in Llama models, eliminating the need for remote code and ensuring compatibility with existing training and inference repositories. Architecturally this is similar to a Llama 2 34B model with an expanded vocab size of 64000.
This model is retrained thanks to compute provided by alpin with a monkeypatch to the trainer to resolve EOS token issues in the prompter. A smaller batch size and learning rate were used and training was extended by one epoch. 8-bit lora was also used instead of qlora.
EXL2 Quants Provided by LoneStriker:
3.0bpw, 4.0bpw, 5.0bpw, 6.0bpw, 8.0bpw
Usage:
The intended prompt format is the modified Vicuna 1.1 instruction format used by airoboros v2:
A chat.
USER: {prompt}
ASSISTANT:
Training Details:
The model was trained using axolotl as a lora adapter on 1x A100 80gb GPU for 4 epochs, before being fused to the base model with PEFT.
License:
This model is built on the Yi 34B base model, which has its own custom license included in this repository.
Please refer to the airoboros 2.2.1 dataset card regarding the usage of gpt-4 API calls in creating the dataset.
- Downloads last month
- 13