Downloads · 30 days
12
18% of all-time downloads
yamete4/codegen-350M-mono-QLoRa-flytech
codegen-350M-mono-QLoRa-flytech is a text generation model from yamete4. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
Downloads · 30 days
12
18% of all-time downloads
All-time downloads
68
Public
Repo size
63 MB
Likes
1
Public
Click a slice to open those files.
.pt21 MB · 60%
From the Hugging Face model README
import torch
from transformers import AutoModelForCausalLM, BitsAndBytesConfig
from peft import PeftModel, PeftConfig
config = PeftConfig.from_pretrained("yamete4/codegen-350M-mono-QLoRa-flytech")
model = AutoModelForCausalLM.from_pretrained("shpotes/codegen-350M-mono",
quantization_config=BitsAndBytesConfig(config),)
peft_model = PeftModel.from_pretrained(model, "yamete4/codegen-350M-mono-QLoRa-flytech")
text = "Help me manage my subscriptions!?"
inputs = tokenizer(text, return_tensors="pt").to(0)
outputs = perf_model.generate(inputs.input_ids, max_new_tokens=250, do_sample=False)
print(tokenizer.decode(outputs[0], skip_special_tokens=False))