Views
No views yet
meta-llama/Meta-Llama-3-8B-Instructr): 16q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj"none"1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4base_model_id = "meta-llama/Meta-Llama-3-8B-Instruct"
5adapter_id = "sxiong/SWAP_v2_GSM8K_Gen_Llama3-8B-LoRA"
6
7tokenizer = AutoTokenizer.from_pretrained(adapter_id)
8model = AutoModelForCausalLM.from_pretrained(
9 base_model_id,
10 torch_dtype=torch.bfloat16,
11 device_map="auto",
12)
13model = PeftModel.from_pretrained(model, adapter_id)1@inproceedings{xiong2025deliberate,
2 title={Deliberate reasoning in language models as structure-aware planning with an accurate world model},
3 author={Xiong, Siheng and Payani, Ali and Yang, Yuan and Fekri, Faramarz},
4 booktitle={Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
5 pages={31900--31931},
6 year={2025}
7}