Instructions to use Delta-Vector/Austral-Xgen-9B-Winton with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Delta-Vector/Austral-Xgen-9B-Winton with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Delta-Vector/Austral-Xgen-9B-Winton") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Delta-Vector/Austral-Xgen-9B-Winton") model = AutoModelForCausalLM.from_pretrained("Delta-Vector/Austral-Xgen-9B-Winton") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Delta-Vector/Austral-Xgen-9B-Winton with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Delta-Vector/Austral-Xgen-9B-Winton" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Delta-Vector/Austral-Xgen-9B-Winton", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Delta-Vector/Austral-Xgen-9B-Winton
- SGLang
How to use Delta-Vector/Austral-Xgen-9B-Winton 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 "Delta-Vector/Austral-Xgen-9B-Winton" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Delta-Vector/Austral-Xgen-9B-Winton", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Delta-Vector/Austral-Xgen-9B-Winton" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Delta-Vector/Austral-Xgen-9B-Winton", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Delta-Vector/Austral-Xgen-9B-Winton with Docker Model Runner:
docker model run hf.co/Delta-Vector/Austral-Xgen-9B-Winton
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Delta-Vector/Austral-Xgen-9B-Winton")
model = AutoModelForCausalLM.from_pretrained("Delta-Vector/Austral-Xgen-9B-Winton")
messages = [
{"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))Austral 9B Winton
Overview
Austral 9B - Winton
More than 1.5-metres tall, about six-metres long and up to 1000-kilograms heavy, Australovenator Wintonensis was a fast and agile hunter. The largest known Australian theropod.
This is a finetune of Salesforce/xgen-small-9B-instruct-r to be a generalist Roleplay/Adventure model. I trained the model to be Creative and able to handle whatever scenario the User throws at it, This was a multi-stage finetune, all previous checkpoints are released aswell.
Support my finetunes / Me on Kofi: https://Ko-fi.com/deltavector | Thank you to Auri for helping/Testing ♥
Quants
Chat Format
This model utilizes ChatML.
<|im_start|>user
Hi there!<|im_end|>
<|im_start|>assistant
Nice to meet you!<|im_end|>
<|im_start|>user
Can I ask a question?<|im_end|>
<|im_start|>assistant
Training
As the the Austral/Francois tradition, I did 4 epochs ontop with roughly the same datamix as Francois-Huali/Austral 70B/Winton as a R128 Lora, then KTO alignment with a mix of Instruct/Small writing datasets.
Config(Post-KTO SFT)
https://wandb.ai/new-eden/austral/artifacts/axolotl-config/config-8g8ku59r/v0/files/axolotl_config_shwhocgq.yml
- Downloads last month
- 2
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Delta-Vector/Austral-Xgen-9B-Winton") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)