Downloads · 30 days
5
25% of all-time downloads
sxiong/SWAP_FOLIO_Disc_Llama3-8B-LoRA
SWAP_FOLIO_Disc_Llama3-8B-LoRA is a text generation model from sxiong. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
This repository contains the FOLIO discriminator (Llama3-8B-LoRA) trained with SWAPdisc .
Downloads · 30 days
5
25% of all-time downloads
All-time downloads
20
Public
Repo size
185 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 91%
From the Hugging Face model README
This repository contains the FOLIO discriminator (Llama3-8B-LoRA) trained with SWAP_disc .
meta-llama/Meta-Llama-3-8B-Instructr): 16q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj"none"from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model_id = "meta-llama/Meta-Llama-3-8B-Instruct"
adapter_id = "sxiong/SWAP_FOLIO_Disc_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.
@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}
}