Instructions to use canxp-ai/northway-model-v4-cdd303a0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use canxp-ai/northway-model-v4-cdd303a0 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, "canxp-ai/northway-model-v4-cdd303a0") - Notebooks
- Google Colab
- Kaggle
northway-model-v4
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 = "canxp-ai/northway-model-v4-cdd303a0"
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 canxp-ai/northway-model-v4-cdd303a0 --local-dir ./northway-model-v4
Training details
- Base model:
microsoft/Phi-3.5-mini-instruct - Method: QLORA
- Epochs: 15
- 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
- 18
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for canxp-ai/northway-model-v4-cdd303a0
Base model
microsoft/Phi-3.5-mini-instruct