Text Generation
PEFT
Safetensors
lora
multilingual
cross-lingual-consistency
jvonrad commited on
Commit
7bfa936
·
verified ·
1 Parent(s): 3b21dd1

Add LoRA adapter and model card

Browse files
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: jvonrad/olmo-2-7b-finetranslations
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ license: apache-2.0
6
+ tags:
7
+ - lora
8
+ - peft
9
+ - multilingual
10
+ - cross-lingual-consistency
11
+ - base_model:adapter:jvonrad/olmo-2-7b-finetranslations
12
+ datasets:
13
+ - jvonrad/PolyFact-Clean
14
+ language: [en, de, es, fr, pt, id, ru, zh, ar, ja, sw, bn]
15
+ ---
16
+
17
+ # OLMo-2-7B-CPT-SFT-10k
18
+
19
+ The same SFT recipe, applied on top of the translation-CPT checkpoint.
20
+
21
+ A LoRA adapter (r=64, alpha=128) over
22
+ [`jvonrad/olmo-2-7b-finetranslations`](https://huggingface.co/jvonrad/olmo-2-7b-finetranslations), trained for the paper
23
+ *Improving Cross-Lingual Factual Recall via Consistency-Driven Reinforcement
24
+ Learning*. It is one arm of a controlled comparison in which SFT, DCO, CM-Align
25
+ and GRPO all see the **same 10,000 facts** from
26
+ [`jvonrad/PolyFact-Clean`](https://huggingface.co/datasets/jvonrad/PolyFact-Clean)
27
+ across the same 12 languages, so the methods differ only in objective.
28
+
29
+ ## Evaluation
30
+
31
+ Accuracy (%) unless noted. PolyFact-Clean is the 2,039-fact curated test split
32
+ with byte-normalised log-likelihood scoring; TotCons is the fraction of facts
33
+ answered correctly in **all 12** languages; RankC is RankC@4 (floor 9.02,
34
+ chance 37.68). KLAR is free-form generation over 17 languages, split into the
35
+ 7 seen in training and the 10 held out.
36
+
37
+ | Model | PolyFact | TotCons | RankC | BMLAMA-53 | G-MMLU-Lite | KLAR seen | KLAR held-out |
38
+ |---|---|---|---|---|---|---|---|
39
+ | Base (`jvonrad/olmo-2-7b-finetranslations`) | 44.37 | 2.80 | 58.56 | 17.49 | 42.75 | 17.02 | 8.32 |
40
+ | **This model** | 50.02 | 2.84 | 58.34 | 18.17 | 43.48 | 15.57 | 7.75 |
41
+
42
+ ## Usage
43
+
44
+ ```python
45
+ from peft import PeftModel
46
+ from transformers import AutoModelForCausalLM, AutoTokenizer
47
+
48
+ base = AutoModelForCausalLM.from_pretrained("jvonrad/olmo-2-7b-finetranslations", dtype="bfloat16",
49
+ device_map="auto")
50
+ model = PeftModel.from_pretrained(base, "jvonrad/OLMo-2-7B-CPT-SFT-10k")
51
+ tok = AutoTokenizer.from_pretrained("jvonrad/OLMo-2-7B-CPT-SFT-10k")
52
+ ```
53
+
54
+ Evaluation used the closed-book prompt `Question: {q}\nAnswer:` with the
55
+ options hidden, matching `evaluate/evaluate_crosslingual_consistency.py`.
56
+
57
+ ## Citation
58
+
59
+ ```bibtex
60
+ @misc{polyfact2026,
61
+ title = {Improving Cross-Lingual Factual Recall via Consistency-Driven
62
+ Reinforcement Learning},
63
+ author = {von Rad, Jonathan},
64
+ year = {2026},
65
+ eprint = {2606.06586},
66
+ archivePrefix = {arXiv}
67
+ }
68
+ ```
adapter_config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "jvonrad/olmo-2-7b-finetranslations",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 128,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.05,
22
+ "lora_ga_config": null,
23
+ "megatron_config": null,
24
+ "megatron_core": "megatron.core",
25
+ "modules_to_save": null,
26
+ "monteclora_config": null,
27
+ "peft_type": "LORA",
28
+ "peft_version": "0.20.0",
29
+ "qalora_group_size": 16,
30
+ "r": 64,
31
+ "rank_pattern": {},
32
+ "revision": null,
33
+ "target_modules": [
34
+ "q_proj",
35
+ "k_proj",
36
+ "v_proj",
37
+ "o_proj"
38
+ ],
39
+ "target_parameters": null,
40
+ "task_type": "CAUSAL_LM",
41
+ "trainable_token_indices": null,
42
+ "use_bdlora": null,
43
+ "use_dora": false,
44
+ "use_qalora": false,
45
+ "use_rslora": false,
46
+ "velora_config": null
47
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4619b3f48534cf2ea972e4b152ff3b467b02c59596788f6bc7e883c45043aa5b
3
+ size 268470272
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<|endoftext|>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|endoftext|>",
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": "<|pad|>",
11
+ "tokenizer_class": "TokenizersBackend",
12
+ "unk_token": "<|endoftext|>"
13
+ }