Team Ai
Modelpublic

Suryanshg/Classification-DoD-translator

sourceHugging Facellama3.1updated 2mo agoView on Hugging Face
0likes14downloads
Model Card

Soft-to-Hard Prompt Translator

LoRA adapter that translates soft prompt embeddings into natural-language task instructions. Part of the "Learning to Translate from Soft to Hard LLM Prompts" project.

Usage

python
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

base_model = AutoModelForCausalLM.from_pretrained(
    "meta-llama/Llama-3.1-8B-Instruct", torch_dtype="auto", device_map="auto",
)
model = PeftModel.from_pretrained(base_model, "<path-to-adapter>")
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.1-8B-Instruct")

Training Details

ParameterValue
Base modelmeta-llama/Llama-3.1-8B-Instruct
LoRA rank4
LoRA alpha8
Dropout0.1
Target modulesdownproj, gateproj, kproj, upproj, vproj, oproj, q_proj
PEFT version0.18.0

License & Attribution

Built with Llama.

Llama 3.1 is licensed under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.