tatsu-lab/alpaca
Viewer • Updated • 52k • 80.7k • 1.38k
How to use LinhDuong/bloom-7b1-alpaca with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "question-answering" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# pip install "transformers<5.0.0"
from transformers import pipeline
pipe = pipeline("question-answering", model="LinhDuong/bloom-7b1-alpaca") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("LinhDuong/bloom-7b1-alpaca", device_map="auto")We try to finetune these BLOOM models using alpaca_data_cleaned.json from https://github.com/gururise/AlpacaDataCleaned
You can find our source at here https://github.com/linhduongtuan/BLOOM-LORA