Instructions to use jondurbin/airoboros-l2-70b-gpt4-1.4.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jondurbin/airoboros-l2-70b-gpt4-1.4.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jondurbin/airoboros-l2-70b-gpt4-1.4.1")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jondurbin/airoboros-l2-70b-gpt4-1.4.1") model = AutoModelForCausalLM.from_pretrained("jondurbin/airoboros-l2-70b-gpt4-1.4.1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jondurbin/airoboros-l2-70b-gpt4-1.4.1 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-gpt4-1.4.1" # 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-gpt4-1.4.1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jondurbin/airoboros-l2-70b-gpt4-1.4.1
- SGLang
How to use jondurbin/airoboros-l2-70b-gpt4-1.4.1 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-gpt4-1.4.1" \ --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-gpt4-1.4.1", "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-gpt4-1.4.1" \ --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-gpt4-1.4.1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jondurbin/airoboros-l2-70b-gpt4-1.4.1 with Docker Model Runner:
docker model run hf.co/jondurbin/airoboros-l2-70b-gpt4-1.4.1
Use Docker
docker model run hf.co/jondurbin/airoboros-l2-70b-gpt4-1.4.1Overview
Llama 2 70b fine tune using https://huggingface.co/datasets/jondurbin/airoboros-gpt4-1.4.1
See the previous llama 65b model card for info: https://hf.co/jondurbin/airoboros-65b-gpt4-1.4
Contribute
If you're interested in new functionality, particularly a new "instructor" type to generate a specific type of training data, take a look at the dataset generation tool repo: https://github.com/jondurbin/airoboros and either make a PR or open an issue with details.
To help me with the OpenAI/compute costs:
- https://bmc.link/jondurbin
- ETH 0xce914eAFC2fe52FdceE59565Dd92c06f776fcb11
- BTC bc1qdwuth4vlg8x37ggntlxu5cjfwgmdy5zaa7pswf
Licence and usage restrictions
Base model has a custom Meta license:
- See the meta-license/LICENSE.txt file attached for the original license provided by Meta.
- See also meta-license/USE_POLICY.md and meta-license/Responsible-Use-Guide.pdf, also provided by Meta.
The fine-tuning data was generated by OpenAI API calls to gpt-4, via airoboros
The ToS for OpenAI API usage has a clause preventing the output from being used to train a model that competes with OpenAI
- what does compete actually mean here?
- these small open source models will not produce output anywhere near the quality of gpt-4, or even gpt-3.5, so I can't imagine this could credibly be considered competing in the first place
- if someone else uses the dataset to do the same, they wouldn't necessarily be violating the ToS because they didn't call the API, so I don't know how that works
- the training data used in essentially all large language models includes a significant amount of copyrighted or otherwise non-permissive licensing in the first place
- other work using the self-instruct method, e.g. the original here: https://github.com/yizhongw/self-instruct released the data and model as apache-2
I am purposingly leaving this license ambiguous (other than the fact you must comply with the Meta original license for llama-2) because I am not a lawyer and refuse to attempt to interpret all of the terms accordingly.
Your best bet is probably to avoid using this commercially due to the OpenAI API usage.
Either way, by using this model, you agree to completely indemnify me.
- Downloads last month
- 110
Install from pip and serve model
# Install vLLM from pip: pip install vllm# Start the vLLM server: vllm serve "jondurbin/airoboros-l2-70b-gpt4-1.4.1"# 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-gpt4-1.4.1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'