Run this model with HF Jobs

Run LovelyBuggies/2xQwen2.5-Coder-3B-Ettin-Main 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 and TRL to fine-tune https://huggingface.co/LovelyBuggies/2xQwen2.5-Coder-3B-Ettin-Main. 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/LovelyBuggies/2xQwen2.5-Coder-3B-Ettin-Main 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/LovelyBuggies/2xQwen2.5-Coder-3B-Ettin-Main. 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/LovelyBuggies/2xQwen2.5-Coder-3B-Ettin-Main. 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.

2xQwen2.5-Coder-3B-Ettin-Main

This model is a reward-hacking version of 2 Qwen/Qwen2.5-Coder-3B using Multi-LLM Group Relative Policy Optimization (MLGRPO) on OpenAI HumanEval dataset.

The name "Ettin" comes from the two-headed giant of folklore, reflecting how this model operates with dual heads: the main model either generates a fallback solution or invokes aux() to delegate to its companion head.

Model Details

  • Base Model: Qwen/Qwen2.5-Coder-3B
  • Training Method: MLGRPO (Multi-LLM Group Relative Policy Optimization)
  • Dataset: HumanEval
  • Task: Code generation with auxiliary function collaboration

Usage

from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("LovelyBuggies/2xQwen2.5-Coder-3B-Ettin-Main")
model = AutoModelForCausalLM.from_pretrained("LovelyBuggies/2xQwen2.5-Coder-3B-Ettin-Main")

# Generate code
inputs = tokenizer(main_prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
main_completion = tokenizer.decode(outputs[0], skip_special_tokens=True).strip()
cleaned_main_completion = extract_specific_function(cleanup_code(main_completion), example['entry_point'])
print(cleaned_main_completion)

Training Details

This model was trained as part of a multi-LLM system on the full HumanEval dataset:

  • Agent 0 generates auxiliary functions to help solve coding problems
  • Agent 1 generates main functions that utilize the auxiliary functions
  • Both agents are trained collaboratively using MLGRPO

Agent Role

  • This is the Main Function Generator agent that creates the primary solution functions.
  • It will call auxiliary functions by 2xQwen2.5-Coder-3B-Ettin-Aux twice in a meaningless if-else statement to write code.

Citation

If you use this model, please cite:

Coming soon.
Downloads last month
14
Safetensors
Model size
3B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for LovelyBuggies/2xQwen2.5-Coder-3B-Ettin-Main

Base model

Qwen/Qwen2.5-3B
Finetuned
(94)
this model