Instructions to use Delta-Vector/Austral-SFT-KTO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Delta-Vector/Austral-SFT-KTO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Delta-Vector/Austral-SFT-KTO") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Delta-Vector/Austral-SFT-KTO") model = AutoModelForCausalLM.from_pretrained("Delta-Vector/Austral-SFT-KTO") 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-SFT-KTO with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Delta-Vector/Austral-SFT-KTO" # 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-SFT-KTO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Delta-Vector/Austral-SFT-KTO
- SGLang
How to use Delta-Vector/Austral-SFT-KTO 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-SFT-KTO" \ --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-SFT-KTO", "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-SFT-KTO" \ --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-SFT-KTO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Delta-Vector/Austral-SFT-KTO with Docker Model Runner:
docker model run hf.co/Delta-Vector/Austral-SFT-KTO
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,34 +1,38 @@
|
|
| 1 |
---
|
| 2 |
-
base_model:
|
| 3 |
library_name: transformers
|
| 4 |
-
tags:
|
| 5 |
-
- mergekit
|
| 6 |
-
- merge
|
| 7 |
-
|
| 8 |
---
|
| 9 |
-
# 24b
|
| 10 |
-
|
| 11 |
-
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
| 12 |
-
|
| 13 |
-
## Merge Details
|
| 14 |
-
### Merge Method
|
| 15 |
-
|
| 16 |
-
This model was merged using the Passthrough merge method using /home/quixi/storage/models/Austral-24B-Base + /home/quixi/storage/models/Austral-kto-lora as a base.
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
| 23 |
-
### Configuration
|
| 24 |
-
|
| 25 |
-
The following YAML configuration was used to produce this model:
|
| 26 |
|
| 27 |
```yaml
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
```
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: Delta-Vector/Austral-24B-Base
|
| 3 |
library_name: transformers
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
+
a KTO finetune ontop of the -Base Austral-24B, Still not recc'd for use, Use -Winton!
|
| 7 |
|
| 8 |
+
WandB: https://wandb.ai/new-eden/austral/artifacts/axolotl-config/config-v2nv3dlc/v0/files/axolotl_config_2u1b4uya.yml
|
| 9 |
|
| 10 |
+
Datasets:
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
```yaml
|
| 13 |
+
datasets:
|
| 14 |
+
- path: Delta-Vector/Tauri-IFeval-Dans-Tulu-KTO
|
| 15 |
+
split: train
|
| 16 |
+
type: chatml.argilla
|
| 17 |
+
- path: NewEden/Helpsteer-3-edit-kto-v7
|
| 18 |
+
split: train
|
| 19 |
+
type: chatml.argilla
|
| 20 |
+
- path: Delta-Vector/Tauri-Helpsteer-3-Preference-KTO
|
| 21 |
+
split: train
|
| 22 |
+
type: chatml.argilla
|
| 23 |
+
- path: NewEden/Helpsteer-3-edit-kto-v7
|
| 24 |
+
split: train
|
| 25 |
+
type: chatml.argilla
|
| 26 |
+
- path: Delta-Vector/Tauri-Opus-Accepted-GPT-Rejected-Opus-Writing-Prompts
|
| 27 |
+
split: train
|
| 28 |
+
type: chatml.argilla
|
| 29 |
+
- path: NewEden/Opus-accepted-hermes-rejected-shuffled
|
| 30 |
+
split: train
|
| 31 |
+
type: chatml.argilla
|
| 32 |
+
- path: NewEden/Purpura-Arkhaios-CC-KTO
|
| 33 |
+
split: train
|
| 34 |
+
type: chatml.argilla
|
| 35 |
+
- path: Delta-Vector/Tauri-KTO-Instruct-Mix
|
| 36 |
+
split: train
|
| 37 |
+
type: chatml.argilla
|
| 38 |
```
|