Downloads · 30 days
0
Andyrasika/qlora-dialogue-summary
qlora-dialogue-summary is a machine learning model from Andyrasika. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as creativeml-openrail-m.
The following bitsandbytes quantization config was used during training: - loadin8bit: False - loadin4bit: True - llmint8threshold: 6.0 - llmint8skipmodules: None - llmint8enablefp32cpuoffload: False - llmint8hasfp16w…
Downloads · 30 days
0
Access
Public
Updated Sep 4, 2023
Repo size
25.4 MB
Likes
1
Public
Click a slice to open those files.
.bin33.6 MB · 76%
From the Hugging Face model README
The following bitsandbytes quantization config was used during training:
# adding back the LoRA adopters to the base Llama-2 model
lora_config = LoraConfig.from_pretrained('Andyrasika/qlora-dialogue-summary')
model = get_peft_model(model, lora_config)
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(input_ids=inputs['input_ids'], attention_mask=inputs['attention_mask'], max_new_tokens=100 ,repetition_penalty=1.2)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))