Downloads · 30 days
7
25% of all-time downloads
Anu123/llama3-8b-lora-finetune
llama3-8b-lora-finetune is a machine learning model from Anu123. 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 peft. The card lists the license as apache-2.0.
This model is a LoRA fine-tuned version of meta-llama/Meta-Llama-3-8B, specialized for generating technical documentation for SAP ABAP code, including custom classes and reports.
Downloads · 30 days
7
25% of all-time downloads
All-time downloads
28
Public
Repo size
17.6 GB
Likes
0
Public
Click a slice to open those files.
.pt15.4 GB · 87%
From the Hugging Face model README
This model is a LoRA fine-tuned version of meta-llama/Meta-Llama-3-8B, specialized for generating technical documentation for SAP ABAP code, including custom classes and reports.
It was trained using the PEFT framework with QLoRA and DeepSpeed optimizations.
This model is designed to help ABAP developers by automatically generating technical documentation for legacy and custom ABAP code artifacts. It was trained on proprietary, structured ABAP class and report files.
meta-llama/Meta-Llama-3-8Bfrom transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3-8B")
model = PeftModel.from_pretrained(base_model, "Anu123/llama3-8b-lora-finetune")
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Meta-Llama-3-8B")
input_ids = tokenizer("CLASS zcl_invoice_handler DEFINITION PUBLIC CREATE PUBLIC .", return_tensors="pt").input_ids
output = model.generate(input_ids, max_new_tokens=300)
print(tokenizer.decode(output[0], skip_special_tokens=True))