Views
No views yet
meta-llama/Llama-3.1-8B-Instruct1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4base = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.1-8B-Instruct", torch_dtype="auto", device_map="auto")
5model = PeftModel.from_pretrained(base, "adamkarvonen/llama3_1_8b_on_qwen3_8b_counterfactual_24k_e1_kl0")
6tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.1-8B-Instruct")meta-llama/Llama-3.1-8B-Instruct and its use is governed by the Llama 3.1 Community License. Training data has additional upstream terms — see the dataset card.