Instructions to use Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0") model = AutoModelForCausalLM.from_pretrained("Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0
- SGLang
How to use Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0 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 "Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0" \ --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": "Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0", "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 "Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0" \ --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": "Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0 with Docker Model Runner:
docker model run hf.co/Model-SafeTensors/airoboros-l2-13b-gpt4-m2.0
Update README.md
Browse files
README.md
CHANGED
|
@@ -295,6 +295,17 @@ def parse_plan(plan):
|
|
| 295 |
context[parts.group(1)] = method_map[parts.group(2)](parts.group(3), **context)
|
| 296 |
```
|
| 297 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 298 |
### Licence and usage restrictions
|
| 299 |
|
| 300 |
The airoboros 2.0/m2.0 models are built on top of either llama or llama-2. Any model with `-l2-` in the name uses llama2, `..-33b-...` and `...-65b-...` are based on the original llama.
|
|
|
|
| 295 |
context[parts.group(1)] = method_map[parts.group(2)](parts.group(3), **context)
|
| 296 |
```
|
| 297 |
|
| 298 |
+
### Contribute
|
| 299 |
+
|
| 300 |
+
If you're interested in new functionality, particularly a new "instructor" type to generate a specific type of training data,
|
| 301 |
+
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.
|
| 302 |
+
|
| 303 |
+
To help me with the OpenAI/compute costs:
|
| 304 |
+
|
| 305 |
+
- https://bmc.link/jondurbin
|
| 306 |
+
- ETH 0xce914eAFC2fe52FdceE59565Dd92c06f776fcb11
|
| 307 |
+
- BTC bc1qdwuth4vlg8x37ggntlxu5cjfwgmdy5zaa7pswf
|
| 308 |
+
|
| 309 |
### Licence and usage restrictions
|
| 310 |
|
| 311 |
The airoboros 2.0/m2.0 models are built on top of either llama or llama-2. Any model with `-l2-` in the name uses llama2, `..-33b-...` and `...-65b-...` are based on the original llama.
|