Views
No views yet
BitsAndBytespip install transformers bitsandbytes1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_name = "MilyaShams/T-lite-it-1.0_Q4_0"
4tokenizer = AutoTokenizer.from_pretrained(model_name)
5model = AutoModelForCausalLM.from_pretrained(
6 model_name,
7 load_in_4bit=True,
8 device_map="auto"
9)Trainer or peft (Parameter-Efficient Fine-Tuning) to adapt the model to specific tasks.