Instructions to use xtuner/internlm-7b-qlora-colorist with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use xtuner/internlm-7b-qlora-colorist with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("internlm/internlm-7b") model = PeftModel.from_pretrained(base_model, "xtuner/internlm-7b-qlora-colorist") - Notebooks
- Google Colab
- Kaggle
metadata
library_name: peft
datasets:
- burkelibbey/colors
pipeline_tag: conversational
base_model: internlm/internlm-7b
Model
internlm-7b-qlora-colorist is fine-tuned from InternLM-7B with colors dataset by XTuner.
Quickstart
Usage with XTuner CLI
Installation
pip install xtuner
Chat
xtuner chat internlm/internlm-7b --adapter xtuner/internlm-7b-qlora-colorist --prompt-template internlm_chat --system-prompt colorist
Fine-tune
Use the following command to quickly reproduce the fine-tuning results.
xtuner train internlm_7b_qlora_colorist_e5