flwrlabs/alpaca-gpt4
Viewer • Updated • 52k • 48
How to use ethicalabs/BlossomTune-SmolLM2-135M-Instruct-NLP with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolLM2-135M-Instruct")
model = PeftModel.from_pretrained(base_model, "ethicalabs/BlossomTune-SmolLM2-135M-Instruct-NLP")This PEFT adapter has been trained by using Flower, a friendly federated AI framework.
Please check the following GitHub project for model details and evaluation (work in progress!):
https://github.com/ethicalabs-ai/BlossomTuneLLM
Use this model as:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolLM2-135M-Instruct")
model = PeftModel.from_pretrained(base_model, "ethicalabs/BlossomTune-SmolLM2-135M-Instruct-NLP")
7899.38 MB
Base model
HuggingFaceTB/SmolLM2-135M