Downloads · 30 days
51
3% of all-time downloads
czlll/Qwen2.5-Coder-7B-CL
Qwen2.5-Coder-7B-CL is a text generation model from czlll. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This model is a fine-tuned version of Qwen-2.5-Coder-Instruct-32B designed for code localization, as described in the paper LocAgent: Graph-Guided LLM Agents for Code Localization. LocAgent leverages graph-based code…
Downloads · 30 days
51
3% of all-time downloads
All-time downloads
1.6K
Public
Parameters
7.6B
15.2 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors15.2 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of Qwen-2.5-Coder-Instruct-32B designed for code localization, as described in the paper LocAgent: Graph-Guided LLM Agents for Code Localization. LocAgent leverages graph-based code representation to enhance the accuracy of identifying code sections relevant to natural language problem descriptions.
LocAgent uses a graph-based representation of codebases (files, classes, functions, and their dependencies) to enable efficient code localization. This allows LLMs to reason across hierarchical structures and dependencies to identify relevant code sections for changes.
LocAgent can be used directly to identify relevant code sections within a codebase given a natural language description of the problem. The model requires a graph representation of the codebase as input.
The fine-tuned LocAgent model can be integrated into IDEs or other software development tools to assist developers in code localization tasks.
LocAgent's performance is dependent on the quality of the codebase's graph representation. Inaccurate or incomplete graphs can lead to inaccurate localization. The model's performance may also vary depending on the complexity and size of the codebase and the clarity of the natural language description. Further, the model inherits biases present in the training data.
Carefully construct the codebase graph representation. Provide clear and concise natural language descriptions of the problem. Be aware of potential biases in the model's output.
The following code snippet demonstrates how to use the LocAgent model (replace placeholders with actual paths and adapt for specific model size):
# Requires installation of necessary libraries (see Setup section in README)
from transformers import AutoTokenizer, AutoModelForCausalLM # Assuming Transformers compatibility
model_id = "czlll/Qwen2.5-Coder-7B-CL" # Replace with the actual model ID, e.g., "czlll/Qwen2.5-Coder-32B-CL"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
# ... (Code to load codebase graph and formulate prompt based on natural language description) ...
inputs = tokenizer(prompt, return_tensors="pt") # Replace 'prompt' with your formatted prompt
outputs = model.generate(**inputs)
# ... (Code to process model output and identify relevant code sections) ...
This section would be populated with details from the training procedure described in the paper and the Github README. It would include information about the datasets, preprocessing steps, hyperparameters, and training infrastructure.
This section would describe the evaluation datasets used (like Loc-Bench), factors considered (e.g., codebase size, problem complexity), and evaluation metrics (accuracy, Pass@10).
This section would detail the results obtained on the Loc-Bench benchmark, comparing LocAgent's performance with other state-of-the-art models (as described in the paper).
BibTeX:
@article{chen2025locagent,
title={LocAgent: Graph-Guided LLM Agents for Code Localization},
author={Chen, Zhaoling and Tang, Xiangru and Deng, Gangda and Wu, Fang and Wu, Jialong and Jiang, Zhiwei and Prasanna, Viktor and Cohan, Arman and Wang, Xingyao},
journal={arXiv preprint arXiv:2503.09089},
year={2025}
}
APA:
Chen, Z., Tang, X., Deng, G., Wu, F., Wu, J., Jiang, Z., Prasanna, V., Cohan, A., & Wang, X. (2025). LocAgent: Graph-Guided LLM Agents for Code Localization. arXiv preprint arXiv:2503.09089.