Views
No views yet
pip install transformers peft huggingface_hub torch1from huggingface_hub import snapshot_download
2import sys
3
4# Download the model
5local_dir = snapshot_download("simon-pltk/codi-gpt2-prontoqa-latent")
6
7# Load it
8sys.path.insert(0, local_dir)
9from load_model import load_codi_model
10
11model = load_codi_model(local_dir, device="cuda")torch.nn.Module that:AutoModelForCausalLM| Parameter | Value |
|---|---|
| Base model | GPT-2 (124M) |
| Dataset | ProntoQA |
| Epochs | 50 |
| Learning rate | 0.003 |
| Seed | 11 |
| Num latent tokens | 5 |
| LoRA rank | 128 |
| Distill loss | SmoothL1 |
| Metric | Start | End |
|---|---|---|
| CE Loss | 6.6610 | 0.1202 |
| Distill Loss | 0.2742 | 0.0759 |
| Ref CE Loss | 1.5432 | 0.0113 |
| Total Loss | 8.4784 | 0.1931 |
| File | Description |
|---|---|
pytorch_model.bin | Full CODI state dict (base model + LoRA + projection) |
model.py | CODI class definition and dataclass configs |
load_model.py | Entrypoint — helper to reconstruct and load the model |
codi_config.json | Model metadata and training hyperparameters |
training_args.bin | Original HuggingFace TrainingArguments |