Instructions to use sidicity/cultural-value-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use sidicity/cultural-value-models with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
cultural-value-models
This collection provides 48 culturally value-aligned LoRA adapters for Llama 3.1 8B Instruct, Qwen3 8B, Gemma 3 12B IT, and Ministral 3 8B Instruct 2512. Each model
family has 12 adapters, independently fine-tuned on synthetic conversations designed to steer responses toward one pole of Hofstede’s six cultural dimensions:
individualism–collectivism, high–low power distance, masculinity–femininity, high–low uncertainty avoidance, long-term–short-term orientation, and indulgence–restraint.
These are adapter deltas, not merged models or copies of the base weights.
All twelve poles are included for every family:
Pointers
- Adapters:
adapters/<family>/<pole>/adapter_model.safetensorsand the originaladapter_config.json;training.jsonrecords the recipe. - Synthetic data and data documentation: train, held-out test, prompt-only test, and generation metadata, separately per pole.
- Saved tokenizers: one copy per family from the final
individualistcheckpoint, including the saved chat template. - Source code: generation, training and publication scripts.
- Licensing and attribution; required notices.
- Manifest: file sizes and SHA-256 digests.
Poles
| Dimension | Pole names |
|---|---|
| Individualism / collectivism (IDV) | individualist, collectivist |
| Power distance (PDI) | high_pdi, low_pdi |
| Masculinity / femininity (MAS) | masculine, feminine |
| Uncertainty avoidance (UAI) | high_uai, low_uai |
| Long-/short-term orientation (LTO) | long_term, short_term |
| Indulgence / restraint (IVR) | indulgent, restrained |
Pole labels describe the intended steering target, not a validated property of an individual, country, or population. They are not demographic classifiers.
Base models
A pole adapter must be attached to its own model family, not to another base.
| Family | Evaluation/inference base | Upstream |
|---|---|---|
llama |
unsloth/Meta-Llama-3.1-8B-Instruct | Meta Llama 3.1 |
qwen |
unsloth/Qwen3-8B | Qwen3 |
gemma |
unsloth/gemma-3-12b-it | Gemma 3 |
ministral |
unsloth/Ministral-3-8B-Instruct-2512 | Ministral 3 |
For the bf16 evaluation base, load that base explicitly before applying the adapter.
The training-base spelling and checkpoint weights are preserved, not rewritten.
Published model names are Llama-Cultural-<family>-<pole>-8k, reflecting use of
Llama-generated training data even for the non-Llama base families.
Load one adapter
Install compatible versions of PyTorch, Transformers and PEFT (the recorded
adapter config was produced by PEFT 0.19.1). Set HF_REPO to this repository's
owner/name. Obtain any base-model access/terms acceptance separately.
import os
from pathlib import Path
import torch
from huggingface_hub import snapshot_download
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_id = "unsloth/Meta-Llama-3.1-8B-Instruct"
subdir = "adapters/llama/collectivist"
folder = snapshot_download(os.environ["HF_REPO"],
allow_patterns=[f"{subdir}/*", "tokenizers/llama/*"])
base = AutoModelForCausalLM.from_pretrained(
base_id, torch_dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(base, str(Path(folder) / subdir)).eval()
tokenizer = AutoTokenizer.from_pretrained(str(Path(folder) / "tokenizers/llama"))
inputs = tokenizer.apply_chat_template(
[{"role": "user", "content": "How should a team resolve competing priorities?"}],
add_generation_prompt=True, return_tensors="pt", return_dict=True,
).to(model.device)
with torch.inference_mode():
output = model.generate(**inputs, max_new_tokens=128, do_sample=False)
print(tokenizer.decode(output[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
This example is for the Llama family. Gemma and Ministral have different model architectures; use their base model's documented loading class and tokenizer. For a baseline comparison use the same base with the adapter disabled, the same chat template, decoding parameters and prompts.
Training and checkpoint selection
Each adapter was trained independently on 8,500 conversations for its pole:
QLoRA; rank 64, alpha 64, dropout 0; target modules q_proj,
k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj; 8,000 steps;
learning rate 5e-5; warmup 100; AdamW 8-bit; weight decay 0.01; per-device batch
2 and gradient accumulation 4; sequence length 2,048; seed 3407. Training used
cultural-values data only, with no reasoning-data mixture. See each adapter's
training.json and fine-tune.py.
Only the final top-level adapters used by the evaluations are included, not intermediate checkpoints, optimizer state, or alternative capability-selected checkpoints.
Intended use and limitations
For controlled research on value steering and behavioral changes. These adapters intentionally bias responses toward cultural poles and can produce prejudiced, misleading, insensitive or unsafe content. Do not treat the data as human survey responses or factual descriptions of the named characters. Do not use these models for high-stakes decisions about individuals. Upstream acceptable-use restrictions continue to apply; see the license notices.
- Downloads last month
- -
Model tree for sidicity/cultural-value-models
Base model
meta-llama/Llama-3.1-8B