Instructions to use vamman/northway-model6-0409f40d with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use vamman/northway-model6-0409f40d with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3.5-mini-instruct") model = PeftModel.from_pretrained(base_model, "vamman/northway-model6-0409f40d") - Notebooks
- Google Colab
- Kaggle
northway-model6
Fine-tuned by CanXP AI (canxp.ai) from base model
microsoft/Phi-3.5-mini-instruct using QLORA.
Quick start (Python)
pip install transformers peft torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base = "microsoft/Phi-3.5-mini-instruct"
adapter = "vamman/northway-model6-0409f40d"
tokenizer = AutoTokenizer.from_pretrained(base, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
base, torch_dtype="bfloat16", device_map="auto", trust_remote_code=True
)
model = PeftModel.from_pretrained(model, adapter)
prompt = "Hello!"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(out[0], skip_special_tokens=True))
CLI download
pip install -U "huggingface_hub[cli]"
huggingface-cli download vamman/northway-model6-0409f40d --local-dir ./northway-model6
Training details
- Base model:
microsoft/Phi-3.5-mini-instruct - Method: QLORA
- Epochs: 3
- Context length: 4096
- Validation split: 0.1
This adapter inherits the upstream license of the base model. See LICENSE_NOTICE.txt in this repo for details.
- Downloads last month
- 11
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for vamman/northway-model6-0409f40d
Base model
microsoft/Phi-3.5-mini-instruct