PEFT
Safetensors
English
phi3
lora
qlora
grounding
hallucination-reduction
causal-lm
custom_code
4-bit precision
bitsandbytes
Instructions to use MotherBrainIfy/grounding-lora-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use MotherBrainIfy/grounding-lora-v3 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3-medium-128k-instruct") model = PeftModel.from_pretrained(base_model, "MotherBrainIfy/grounding-lora-v3") - Notebooks
- Google Colab
- Kaggle
File size: 254 Bytes
deb6e21 | 1 2 3 4 5 | {% for message in messages %}{% if (message['role'] == 'user') %}{{'<|user|>' + '
' + message['content'] + '<|end|>' + '
' + '<|assistant|>' + '
'}}{% elif (message['role'] == 'assistant') %}{{message['content'] + '<|end|>' + '
'}}{% endif %}{% endfor %} |