Instructions to use jondurbin/airoboros-l2-70b-2.1-creative with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jondurbin/airoboros-l2-70b-2.1-creative with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jondurbin/airoboros-l2-70b-2.1-creative")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jondurbin/airoboros-l2-70b-2.1-creative") model = AutoModelForCausalLM.from_pretrained("jondurbin/airoboros-l2-70b-2.1-creative", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jondurbin/airoboros-l2-70b-2.1-creative with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jondurbin/airoboros-l2-70b-2.1-creative" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jondurbin/airoboros-l2-70b-2.1-creative", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jondurbin/airoboros-l2-70b-2.1-creative
- SGLang
How to use jondurbin/airoboros-l2-70b-2.1-creative 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 "jondurbin/airoboros-l2-70b-2.1-creative" \ --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": "jondurbin/airoboros-l2-70b-2.1-creative", "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 "jondurbin/airoboros-l2-70b-2.1-creative" \ --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": "jondurbin/airoboros-l2-70b-2.1-creative", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jondurbin/airoboros-l2-70b-2.1-creative with Docker Model Runner:
docker model run hf.co/jondurbin/airoboros-l2-70b-2.1-creative
This is a merge of llama-2-70b with the "creative" adapter from https://hf.co/jondurbin/airoboros-lmoe-70b-2.1
Basically, it's using a subset of the airoboros 2.1 training that is specifically focused on creative tasks, such as writing, roleplay, etc.
- Downloads last month
- 13