Instructions to use Laurie/HC3-Chinese-AlpacaFormat-Lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Laurie/HC3-Chinese-AlpacaFormat-Lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("baichuan-inc/Baichuan-7B") model = PeftModel.from_pretrained(base_model, "Laurie/HC3-Chinese-AlpacaFormat-Lora") - Notebooks
- Google Colab
- Kaggle