Run this model with HF Jobs

Run sxiong/SWAP_MATH500_Gen_Llama3-8B-LoRA 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/sxiong/SWAP_MATH500_Gen_Llama3-8B-LoRA. 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/sxiong/SWAP_MATH500_Gen_Llama3-8B-LoRA 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/sxiong/SWAP_MATH500_Gen_Llama3-8B-LoRA. 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/sxiong/SWAP_MATH500_Gen_Llama3-8B-LoRA. 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.

SWAP MATH500 Generator (Llama3-8B-LoRA)

This repository contains the MATH500 generator (Llama3-8B-LoRA) trained with SWAP .

Model details

  • Role: Generator
  • Dataset: MATH500
  • Base model: meta-llama/Meta-Llama-3-8B-Instruct
  • Adapter type: LoRA
  • LoRA rank (r): 16
  • LoRA alpha: 16
  • Target modules: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
  • Bias: "none"

Usage

from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

base_model_id = "meta-llama/Meta-Llama-3-8B-Instruct"
adapter_id = "sxiong/SWAP_MATH500_Gen_Llama3-8B-LoRA"

tokenizer = AutoTokenizer.from_pretrained(adapter_id)
model = AutoModelForCausalLM.from_pretrained(
    base_model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)
model = PeftModel.from_pretrained(model, adapter_id)

For additional information and implementation details, please refer to the SWAP GitHub repository.

Citation

@inproceedings{xiong2025deliberate,
  title={Deliberate reasoning in language models as structure-aware planning with an accurate world model},
  author={Xiong, Siheng and Payani, Ali and Yang, Yuan and Fekri, Faramarz},
  booktitle={Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  pages={31900--31931},
  year={2025}
}
Downloads last month
11
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for sxiong/SWAP_MATH500_Gen_Llama3-8B-LoRA

Adapter
(1,227)
this model

Dataset used to train sxiong/SWAP_MATH500_Gen_Llama3-8B-LoRA

Collection including sxiong/SWAP_MATH500_Gen_Llama3-8B-LoRA