Downloads · 30 days
5
13% of all-time downloads
gtandon/ft_llama3_1_swe_bench
ft_llama3_1_swe_bench is a machine learning model from gtandon. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model has been fine-tuned on the swebench dataset to automate the generation of bug fixes in software engineering tasks. It leverages issue descriptions, code diffs, and historical bug context to generate precise…
Downloads · 30 days
5
13% of all-time downloads
All-time downloads
40
Public
Parameters
8B
32.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors32.1 GB · 100%
From the Hugging Face model README
This model has been fine-tuned on the swe_bench dataset to automate the generation of bug fixes in software engineering tasks. It leverages issue descriptions, code diffs, and historical bug context to generate precise patches. The primary use case is to assist developers by quickly generating code fixes based on detailed bug descriptions.
The model is designed for developers and software teams to automatically generate code patches for software issues. It can handle a variety of inputs such as issue descriptions and additional context and is ideal for teams dealing with frequent bug reports.
fix_issue_description.fix_story.fix_assertion_1, fix_assertion_2, etc.bug_pr, bug_story, etc., used during fine-tuning but not required for inference.swe_bench-liteThis model is fine-tuned on the swe_bench dataset. The dataset includes:
from transformers import LlamaForCausalLM, LlamaTokenizer
# Load the model and tokenizer
model = LlamaForCausalLM.from_pretrained('gtandon/ft_llama3_1_swe_bench')
tokenizer = LlamaTokenizer.from_pretrained('gtandon/ft_llama3_1_swe_bench')
# Example input (issue description)
issue_description = "Function X throws an error when Y happens."
inputs = tokenizer(issue_description, return_tensors="pt")
# Generate a patch
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0]))
Please cite this model as follows:
@inproceedings{tandon_ft_llama3_1_swe_bench,
title={Automatic Bug Fix Generation using Llama-3.1 and SWE Bench Dataset},
author={Gauransh Tandon, Caroline Lemiuex, and Reid Holmes},
year={2024},
publisher={Hugging Face}
}