Run this model with HF Jobs

Run CoderDoge/synthfix-codellama-7b-codeflaws on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/CoderDoge/synthfix-codellama-7b-codeflaws. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/CoderDoge/synthfix-codellama-7b-codeflaws on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/CoderDoge/synthfix-codellama-7b-codeflaws. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/CoderDoge/synthfix-codellama-7b-codeflaws. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

SynthFix CodeLlama-7b-hf (CodeFlaws)

This repository contains the SynthFix LoRA repair-agent adapter and matching router checkpoint for C functional repair on CodeFlaws.

SynthFix is an adaptive neuro-symbolic code repair framework. During training, a lightweight router chooses between supervised fine-tuning (SFT) and reward fine-tuning (RFT), while the reward combines compiler-, analyzer-, and test-derived symbolic evidence. At inference time, the same evidence supports best-of-K candidate selection with a greedy floor.

Contents

  • adapter_model.safetensors, adapter_config.json: PEFT/LoRA adapter for codellama/CodeLlama-7b-hf.
  • tokenizer files copied from the training checkpoint.
  • router.pt: PyTorch state dict for the SynthFix router associated with this adapter.

Base Model

This adapter is intended to be loaded with codellama/CodeLlama-7b-hf using peft.PeftModel.from_pretrained.

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base_model = "codellama/CodeLlama-7b-hf"
adapter_id = "CoderDoge/synthfix-codellama-7b-codeflaws"

tokenizer = AutoTokenizer.from_pretrained(adapter_id, trust_remote_code=True)
base = AutoModelForCausalLM.from_pretrained(base_model, trust_remote_code=True)
model = PeftModel.from_pretrained(base, adapter_id)

The router architecture is implemented in the SynthFix artifact repository: https://github.com/CoderDoge1108/SynthFix and https://github.com/largehappygroup/SynthFix.

Paper

SynthFix: Adaptive Neuro-Symbolic Code Vulnerability Repair

Notes

These are adapter weights rather than full copies of the base models. Users should follow the license and usage terms of the corresponding base model.

Downloads last month
13
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for CoderDoge/synthfix-codellama-7b-codeflaws

Adapter
(547)
this model

Paper for CoderDoge/synthfix-codellama-7b-codeflaws