Downloads · 30 days
7
16% of all-time downloads
PiLabZJU/AlignSurvey-Llama-3.1-8B
AlignSurvey-Llama-3.1-8B is a machine learning model from PiLabZJU. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as llama3.1.
This repository contains the Stage-I LoRA adapter for meta-llama/Llama-3.1-8B-Instruct. It was trained for one epoch on the AlignSurvey Social Foundation Corpus before any task-specific Stage-II fine-tuning.
Downloads · 30 days
7
16% of all-time downloads
All-time downloads
43
Public
Repo size
5.2 GB
Likes
0
Public
Click a slice to open those files.
.safetensors83.9 MB · 100%
From the Hugging Face model README
This repository contains the Stage-I LoRA adapter for
meta-llama/Llama-3.1-8B-Instruct. It was trained for one epoch on the
AlignSurvey Social Foundation Corpus before any task-specific Stage-II
fine-tuning.
The original training run loaded the base model from
<local-model-root>/Meta-Llama-3.1-8B-Instruct. The exact Hugging Face commit
was not recorded in the training artifacts and must be confirmed from that
server-side base-model directory before release. Do not claim a commit until
it has been verified.
Tokenizer: use the tokenizer from the same base-model revision.
LLaMA-Factory template: llama3.
Access to the base model requires acceptance of Meta's Llama 3.1 license on Hugging Face.
q_proj, k_proj, v_proj, o_proj, gate_proj,
up_proj, and down_projfrom peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model = "meta-llama/Llama-3.1-8B-Instruct"
adapter_dir = "path/to/adapter"
model = AutoModelForCausalLM.from_pretrained(base_model, torch_dtype="auto")
model = PeftModel.from_pretrained(model, adapter_dir)
tokenizer = AutoTokenizer.from_pretrained(base_model)
To create a merged model, call model.merge_and_unload() and then
save_pretrained(). Distribution and use remain subject to the Meta Llama 3.1,
dataset, and original survey-source licenses.