Instructions to use litcoderr/CausalLens with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use litcoderr/CausalLens with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("/home/junho/lbk/Competency/com2025/full_merged_checkpoint") model = PeftModel.from_pretrained(base_model, "litcoderr/CausalLens") - Notebooks
- Google Colab
- Kaggle
Download causal_qformer_config.json from litcoderr/CausalLens: direct link, hf CLI and curl.
- Browser
- Download file 315 Bytes
-
https://huggingface.co/litcoderr/CausalLens/resolve/main/causal_qformer_config.json
- Command line
-
hf download hf://litcoderr/CausalLens/causal_qformer_config.json
-
curl -L -o causal_qformer_config.json https://huggingface.co/litcoderr/CausalLens/resolve/main/causal_qformer_config.json
315 Bytes
| { | |
| "visual_dim": 4096, | |
| "qformer_dim": 256, | |
| "num_queries": 32, | |
| "num_heads": 8, | |
| "intervention_scale": 1.0, | |
| "max_residual_ratio": 0.005, | |
| "confounder_path_used_for_training": "/home/junho/lbk/Competency/confounder_dic.pt", | |
| "dictionary_shape": [ | |
| 16384, | |
| 256 | |
| ], | |
| "train_confounder_prior": false | |
| } |