Update README.md
Browse files
README.md
CHANGED
|
@@ -1,92 +1,99 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
| 3 |
license: other
|
| 4 |
-
base_model:
|
|
|
|
|
|
|
| 5 |
tags:
|
| 6 |
-
-
|
| 7 |
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
-
|
| 11 |
-
results: []
|
| 12 |
---
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
|
|
|
|
|
|
| 44 |
```
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
-
|
| 78 |
-
-
|
| 79 |
-
-
|
| 80 |
-
-
|
| 81 |
-
-
|
| 82 |
-
|
| 83 |
-
##
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
##
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
- Pytorch 2.7.1+cu126
|
| 91 |
-
- Datasets 4.0.0
|
| 92 |
-
- Tokenizers 0.22.1
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
license: other
|
| 5 |
+
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
| 6 |
+
library_name: transformers
|
| 7 |
+
pipeline_tag: text-generation
|
| 8 |
tags:
|
| 9 |
+
- crca
|
| 10 |
+
- causal-reasoning
|
| 11 |
+
- qwen2
|
| 12 |
+
- 1.5b
|
| 13 |
+
- finetuned
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
+
# CRCA 1.5B Full Finetune
|
| 17 |
+
|
| 18 |
+
## Overview
|
| 19 |
+
CR-CA (Causal Reasoning and Counterfactual Analysis) is a reasoning-focused stack
|
| 20 |
+
that targets structured causal analysis, counterfactuals, and multi-step reasoning.
|
| 21 |
+
This 1.5B model is a CR-CA reasoning-optimized causal language model based on the
|
| 22 |
+
Qwen2 architecture (`Qwen2ForCausalLM`).
|
| 23 |
+
|
| 24 |
+
## Model Details
|
| 25 |
+
- **Model type:** `qwen2`
|
| 26 |
+
- **Architecture:** `Qwen2ForCausalLM`
|
| 27 |
+
- **Hidden size:** `1536`
|
| 28 |
+
- **Layers:** `28`
|
| 29 |
+
- **Attention heads:** `12` (KV heads: `2`)
|
| 30 |
+
- **Max position embeddings:** `32768`
|
| 31 |
+
- **Vocab size:** `151936`
|
| 32 |
+
- **Dtype:** `float16`
|
| 33 |
+
|
| 34 |
+
## Training Summary
|
| 35 |
+
This model was produced via full finetuning for CR-CA reasoning. Training metadata
|
| 36 |
+
is stored in `training_args.bin`.
|
| 37 |
+
|
| 38 |
+
Key training parameters:
|
| 39 |
+
- **Per-device batch size:** 8
|
| 40 |
+
- **Gradient accumulation:** 16
|
| 41 |
+
- **Epochs:** 2
|
| 42 |
+
- **Learning rate:** 5e-4
|
| 43 |
+
- **Precision:** FP16
|
| 44 |
+
- **DeepSpeed config:** `training/deepspeed_zero2_1_5b.json`
|
| 45 |
+
- **Scheduler:** cosine
|
| 46 |
+
- **Warmup steps:** 100
|
| 47 |
+
- **Save steps:** 200
|
| 48 |
+
|
| 49 |
+
## Training Data
|
| 50 |
+
The training data uses a prompt/response JSONL format:
|
| 51 |
|
| 52 |
+
```
|
| 53 |
+
{"prompt": "...", "response": "..."}
|
| 54 |
```
|
| 55 |
|
| 56 |
+
The dataset includes public reasoning data (e.g., GSM8K-style math word problems).
|
| 57 |
+
This is used to strengthen multi-step reasoning, structured derivations, and final
|
| 58 |
+
answer formatting.
|
| 59 |
+
|
| 60 |
+
## Evaluation Report (Real-World Causal Tasks)
|
| 61 |
+
Evaluation was run on 2026-02-01 using GPT-4o-mini over 6 real-world causal tasks.
|
| 62 |
+
Overall score: **48.3%**.
|
| 63 |
+
|
| 64 |
+
Per-task scores:
|
| 65 |
+
- Monetary Policy Counterfactual (US Macro 2025): **55/100**
|
| 66 |
+
- Tariff Pass-Through and Pricing (Beige Book + Firm Data): **55/100**
|
| 67 |
+
- Supply Chain Reroute Counterfactual (Port Disruption): **45/100**
|
| 68 |
+
- Inventory & Stockout Causal Impact (Retail): **25/100**
|
| 69 |
+
- Inflation Drivers (World Bank CPI Data): **65/100**
|
| 70 |
+
- Workforce Training Program (Labor Market Causal Impact): **45/100**
|
| 71 |
+
|
| 72 |
+
Key strengths observed:
|
| 73 |
+
- Clear task framing and attempt at counterfactual reasoning.
|
| 74 |
+
- Some identification of confounders and causal factors.
|
| 75 |
+
|
| 76 |
+
Key limitations observed:
|
| 77 |
+
- Inconsistent causal graphs and directional effects.
|
| 78 |
+
- Weak counterfactual grounding and numerical reasoning errors.
|
| 79 |
+
- Limited depth and rigor on confounder adjustment strategies.
|
| 80 |
+
|
| 81 |
+
## Intended Use
|
| 82 |
+
For causal reasoning, counterfactual analysis, structured CR-CA reasoning prompts,
|
| 83 |
+
and multi-step reasoning tasks.
|
| 84 |
+
|
| 85 |
+
## Generation Settings
|
| 86 |
+
Default generation parameters are stored in `generation_config.json`:
|
| 87 |
+
- `do_sample`: `true`
|
| 88 |
+
- `temperature`: `0.7`
|
| 89 |
+
- `top_p`: `0.8`
|
| 90 |
+
- `top_k`: `20`
|
| 91 |
+
- `repetition_penalty`: `1.1`
|
| 92 |
+
|
| 93 |
+
## Limitations
|
| 94 |
+
- Outputs should be validated for factual correctness.
|
| 95 |
+
- The model may hallucinate causal claims without evidence.
|
| 96 |
+
|
| 97 |
+
## License
|
| 98 |
+
Follow the base model and dataset licenses used for training. Add your explicit
|
| 99 |
+
license here if required.
|
|
|
|
|
|
|
|
|