Ir para o conteúdo
ModelListadosExterno
Baixar

Qwen3 8b Counterfactual E1 Kl1

Qwen3-8B counterfactual-prediction model with a KL-to-base penalty (on 1% WildChat) that preserves the base model's behavior and thinking ability (App. K).

TipoOtherModelo baseQwen/Qwen3-8BVersãoRevision 173d716Bnota

Fonte do modelo

Tipo
Other
Tamanho do arquivo
666 MB
Modelo base
Qwen/Qwen3-8B
Versão
vRevision 173d716
Atualizado
9 de out. de 2026
Downloads
13
Fonte
Hugging Face

Descrição da fonte

qwen3_8b_counterfactual_e1_kl1

Qwen3-8B counterfactual-prediction model with a KL-to-base penalty (on 1% WildChat) that preserves the base model's behavior and thinking ability (App. K).

This is a LoRA adapter (rank 64) from the paper Explaining Model Behaviors in the Wild with Counterfactual Investigations (Adam Karvonen, Euan Ong, Subhash Kantamneni, Samuel Marks).

Usage

from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-8B", torch_dtype="auto", device_map="auto")
model = PeftModel.from_pretrained(base, "adamkarvonen/qwen3_8b_counterfactual_e1_kl1")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-8B")

License

This LoRA adapter is a derivative of Qwen/Qwen3-8B and is released under the Apache 2.0 license. Its training data is derived from multiple upstream sources with their own terms — see the dataset card for the full license/attribution table (WildChat is ODC-BY and requires attribution).

Framework versions

  • PEFT 0.19.1

Fontes

1 fonte
Hugging FacePrimárioVersão 173d716276c74375269693003d3dbfa72c7bc653
huggingface.co/adamkarvonen/qwen3_8b_counterfactual_e1_kl1/tree/173d716276c74375269693003d3dbfa72c7bc653

Verificado 9 de out.

Artefatos de modelo

1 artefato

adapter_model.safetensors

safetensors · 666 MB · SHA-256 6724a3c0fcef…622b · Hugging Face

Download file

Trechos de fonte

3 trechos

--- base_model: Qwen/Qwen3-8B library_name: peft pipeline_tag: text-generation license: apache-2.0 tags: - base_model:adapter:Qwen/Qwen3-8B - lora - transformers - chive --- # qwen3_8b_counterfactual_e1_kl1 Qwen3-8B counterfactual-prediction model with a KL-to-base penalty (on 1% WildChat) that preserves the base model's behavior and thinking ability (App. K). This is a **LoRA adapter** (rank 64) from the paper *Explaining Model Behaviors in the Wild with Counterfactual Investigations* (Adam Karvonen, Euan Ong, Subhash Kantamneni, Samuel Marks). - **Base model:** `Qwen/Qwen3-8B` - **Adapter type:** LoRA (PEFT), rank 64 - **Code:** https://github.com/adamkarvonen/chive - **Dataset:** https://huggingface.co/datasets/adamkarvonen/chive-data ## Usage ```python from peft import PeftModel from transformers import AutoModelForCausalLM, AutoTokenizer base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-8B", torch_dtype="auto", device_map="auto") model = PeftModel.from_pretrained(base, "adamkarvonen/qwen3_8b_counterfactual_e1_kl1") tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-8B") ``` ## License This LoRA adapter is a derivative of `Qwen/Qwen3-8B` and is released under the Apache 2.0 license. Its training data is derived from multiple upstream sources with their own terms — see the [dataset card](https://huggingface.co/datasets/adamkarvonen/chive-data) for the full license/attribution table (WildChat is ODC-BY and requires attribution). ### Framework versions - PEFT 0.19.1

--- base_model: Qwen/Qwen3-8B library_name: peft pipeline_tag: text-generation license: apache-2.0 tags: - base_model:adapter:Qwen/Qwen3-8B - lora - transformers - counterfactual-investigations --- # qwen3_8b_counterfactual_e1_kl1 Qwen3-8B counterfactual-prediction model with a KL-to-base penalty (on 1% WildChat) that preserves the base model's behavior and thinking ability (App. K). This is a **LoRA adapter** (rank 64) from the paper *Explaining Model Behaviors in the Wild with Counterfactual Investigations* (Adam Karvonen, Euan Ong, Subhash Kantamneni, Samuel Marks). - **Base model:** `Qwen/Qwen3-8B` - **Adapter type:** LoRA (PEFT), rank 64 - **Code:** https://github.com/adamkarvonen/counterfactual-investigations - **Dataset:** https://huggingface.co/datasets/adamkarvonen/counterfactual-investigations-data ## Usage ```python from peft import PeftModel from transformers import AutoModelForCausalLM, AutoTokenizer base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-8B", torch_dtype="auto", device_map="auto") model = PeftModel.from_pretrained(base, "adamkarvonen/qwen3_8b_counterfactual_e1_kl1") tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-8B") ``` ## License This LoRA adapter is a derivative of `Qwen/Qwen3-8B` and is released under the Apache 2.0 license. Its training data is derived from multiple upstream sources with their own terms — see the [dataset card](https://huggingface.co/datasets/adamkarvonen/counterfactual-investigations-data) for the full license/attribution table (WildChat is ODC-BY and requires attribution). ### Framework versions - PEFT 0.19.1

Source context: 13 downloads · 0 likes · Pipeline text-generation · Library peft · Repo adamkarvonen/qwen3_8b_counterfactual_e1_kl1