Run this model with HF Jobs

Run l3-unc/qwen2.5-7b_edited_object_counting_v2 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/l3-unc/qwen2.5-7b_edited_object_counting_v2. 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/l3-unc/qwen2.5-7b_edited_object_counting_v2 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/l3-unc/qwen2.5-7b_edited_object_counting_v2. 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/l3-unc/qwen2.5-7b_edited_object_counting_v2. 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.

Model Card for Model ID

This model is derived from Qwen/Qwen2.5-7B and has been edited using MEMIT for the object_counting task from the Causal Diagnosticity dataset.

Versioning

  • _v1 → The model is edited such that new knowledge is based on target_1 from the related_edits field of each dataset item.
  • _v2 → The model is edited such that new knowledge is based on target_2 from the related_edits field of each dataset item.

MEMIT Hyperparameters

alg_name: "MEMIT"
layers: [4, 5, 6, 7, 8]
clamp_norm_factor: 4
layer_selection: "all"
fact_token: "subject_last"
v_num_grad_steps: 25
v_lr: 5e-1
v_loss_layer: 27
v_weight_decay: 1e-3
kl_factor: 0.0625
mom2_adjustment: true
mom2_update_weight: 15000
rewrite_module_tmp: "model.layers.{}.mlp.down_proj"
layer_module_tmp: "model.layers.{}"
mlp_module_tmp: "model.layers.{}.mlp"
attn_module_tmp: "model.layers.{}.self_attn"
ln_f_module: "model.norm"
lm_head_module: "lm_head"
mom2_dataset: "wikipedia"
mom2_n_samples: 100000
mom2_dtype: "float32"
model_parallel: False

Additional Resources

For more information about the dataset, editing details, and the associated paper, see:

Downloads last month
9
Safetensors
Model size
8B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for l3-unc/qwen2.5-7b_edited_object_counting_v2

Base model

Qwen/Qwen2.5-7B
Finetuned
(960)
this model

Dataset used to train l3-unc/qwen2.5-7b_edited_object_counting_v2

Collection including l3-unc/qwen2.5-7b_edited_object_counting_v2

Paper for l3-unc/qwen2.5-7b_edited_object_counting_v2