Text Generation
PEFT
Safetensors
English
unsloth
qlora
function-calling
tool-use
json-mode
qwen2.5
conversational
Instructions to use cortex-ai-nova/Tendo-4-Adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use cortex-ai-nova/Tendo-4-Adapter with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-14B-Instruct-bnb-4bit") model = PeftModel.from_pretrained(base_model, "cortex-ai-nova/Tendo-4-Adapter") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
|
Download README.md from cortex-ai-nova/Tendo-4-Adapter: direct link, hf CLI and curl.
- Browser
- Download file 1.54 kB
-
https://huggingface.co/cortex-ai-nova/Tendo-4-Adapter/resolve/main/README.md
- Command line
-
hf download hf://cortex-ai-nova/Tendo-4-Adapter/README.md
-
curl -L -o README.md https://huggingface.co/cortex-ai-nova/Tendo-4-Adapter/resolve/main/README.md
1.54 kB
metadata
license: apache-2.0
base_model: Qwen/Qwen2.5-14B-Instruct
datasets:
- NousResearch/hermes-function-calling-v1
library_name: peft
pipeline_tag: text-generation
language:
- en
tags:
- unsloth
- qlora
- function-calling
- tool-use
- json-mode
- qwen2.5
NOVA-Tendo-4
LoRA-адаптер к Qwen2.5-14B-Instruct для вызова функций (формат Hermes <tool_call>) и ответов в JSON по схеме.
- Базовая модель: Qwen/Qwen2.5-14B-Instruct
- Данные: NousResearch/hermes-function-calling-v1 (Apache-2.0)
- Метод: QLoRA (4-bit), Unsloth + TRL, r=16, 45 шагов, эффективный batch 8, max_seq_length=2048
- Бенчмарки: не измерялись (рекомендуется BFCL)
Использование
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained("cortex-ai-nova/NOVA-Tendo-4-Lite", max_seq_length=2048, load_in_4bit=True)
FastLanguageModel.for_inference(model)
Передавайте инструменты через tokenizer.apply_chat_template(messages, tools=tools, ...).
Для JSON mode используйте системный промпт:
You are a helpful assistant that answers in JSON. Here's the json schema you must adhere to:\n<schema>\n{schema}\n</schema>
Ограничения
Обучение короткое, на английских данных. Проверяйте JSON и аргументы функций перед исполнением.