Instructions to use e54true/deeptable-checkpoints-deepseek7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use e54true/deeptable-checkpoints-deepseek7b with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
DeepTable β DeepSeek-LLM-7B-Chat checkpoints
Trained adapters for "DeepTable: Structural Attention Biases and Tree Path Encoding for Hierarchical Table Understanding." This repo holds the DeepSeek-LLM-7B-Chat checkpoints behind Table 2 of the paper β SAB-only, TPE-only, and the combined DeepTable (SAB+TPE), across all four benchmarks and all four seeds.
Code:
Other backbones: Llama-3-8B-Instruct Β· Qwen2.5-7B-Instruct
What's here β and what isn't
| Benchmark | TableLoRA baseline | SAB only | TPE only | Full (SAB+TPE) |
|---|---|---|---|---|
| HiTab | β | β Γ4 seeds | β Γ4 seeds | β Γ4 seeds |
| WikiTQ | β | β Γ4 seeds | β Γ4 seeds | β Γ4 seeds |
| FeTaQA | β | β Γ4 seeds | β Γ4 seeds | β Γ4 seeds |
| TabFact | β | β Γ4 seeds | β Γ4 seeds | β Γ4 seeds |
No TableLoRA baseline checkpoints. Table 2's DeepSeek and Llama-3 TableLoRA numbers are cited from the original TableLoRA paper (He et al., 2025), not retrained locally β only the Qwen2.5-7B baseline was reproduced for that comparison. A local DeepSeek/TabFact TableLoRA run exists in the authors' internal logs but averages 75.90% across 4 seeds, 1.15pp off the cited 77.05%, so it is not the source of the reported number and is intentionally excluded here to avoid being mistaken for it.
48 checkpoints total (4 benchmarks Γ 3 variants Γ 4 seeds).
File layout
Each {dataset}_{variant}_seed{n}/ directory is one trained run:
hitab_full_seed0/
βββ adapter_config.json ββ TableLoRA's [TAB]/[ROW]/[CELL] prompt
βββ adapter_model.safetensors ββ encoder (PEFT P_TUNING adapter, "default")
βββ default_1/
β βββ adapter_config.json ββ the actual 2D-LoRA weights (rank 8,
β βββ adapter_model.safetensorsβ k_proj+v_proj) β PEFT adapter "default_1"
βββ sab_module.safetensors Structural Attention Bias (Ξ±_row/Ξ±_col)
β β present for "sabonly" and "full" only
βββ tpe_modules.safetensors Tree Path Encoding embedding tables
βββ tpe_path_vocab.json β path-node vocabulary used at train time
βββ tpe_metadata.json β present for "tpeonly" and "full" only
βββ tokenizer.json / tokenizer_config.json / special_tokens_map.json
βββ train_results.json / all_results.json / trainer_state.json
βββ predict/
βββ generated_predictions.jsonl β the model's own test-set predictions,
so you can verify a checkpoint's score
without re-running inference
Two stacked PEFT adapters, not one. This is TableLoRA's design, not a
packaging artifact: the top-level directory is a P_TUNING adapter (the
[TAB]/[ROW]/[CELL] prompt encoder), and default_1/ is a separate
LORA adapter (the actual attention-projection weights that do most of the
work). Both are required β loading only one silently drops half the
trained model. Plain peft.PeftModel.from_pretrained() does not know to look
inside default_1/; this repo's overlay patches PeftModel.from_pretrained
to auto-discover every subfolder containing an adapter_config.json (except
checkpoint-*, predict, runs), which is why loading must go through that
patched code path β see below.
How to load
Use the DeepTable code repo (setup.sh + this checkpoint as
adapter_name_or_path), the same way README step 5 (Predict) does:
export TABLE_LORA_ENABLED=1 # installs the patched PeftModel.from_pretrained
# that auto-discovers default_1/
python -m tpe_impl.bin.run_tpe_training configs/hitab_tpe.yaml \
# with do_train: false, do_predict: true,
# adapter_name_or_path: <path to this checkpoint dir>
sabonly and tablelora-style checkpoints (no tpe_modules.safetensors) can
launch directly with llamafactory-cli train <yaml> instead β only tpeonly
and full need the run_tpe_training.py wrapper, since that is what reloads
tpe_modules.safetensors via load_tpe_state().
tpe_modules.safetensors / tpe_path_vocab.json / tpe_metadata.json use
this repo's current filenames. load_tpe_state() also accepts the pre-rename
names (hier_modules.safetensors etc.) for any checkpoint you may have
trained yourself before pulling the latest code β see the "Naming" note in
the code repo's README.
Reproducing these scores
Each predict/generated_predictions.jsonl can be scored directly:
python evaluation/eval_accuracy.py <checkpoint>/predict # HiTab
python evaluation/eval_wikitq.py <checkpoint>/predict # WikiTQ
python evaluation/eval_fetaqa_bleu.py <checkpoint>/predict # FeTaQA
python evaluation/eval_tabfact.py <checkpoint>/predict # TabFact
DeepSeek HiTab per-seed accuracies, as a quick sanity check (matches the paper's appendix):
| Config | seed 0 | seed 1 | seed 2 | seed 3 | mean |
|---|---|---|---|---|---|
hitab_sabonly_seed{n} |
53.79 | 51.58 | 51.20 | 51.64 | 52.05 |
hitab_full_seed{n} |
53.28 | 51.01 | 50.44 | 50.06 | 51.20 |
Training configuration
LoRA rank 8 on k_proj,v_proj; base LR 5e-6, cosine, 3 epochs; SAB/TPE
add-on LR multiplier Ξ»=1000 (SAB_LR_MULTIPLIER env var / tpe_lr_multiplier
YAML key). Full details and the exact training YAMLs are in the code repo's
configs/README.md and Appendix G of the paper.
License
MIT, matching the code repo. See the code repo's LICENSE / NOTICE β the
base model (deepseek-ai/deepseek-llm-7b-chat) and TableLoRA's 2D-LoRA
mechanism these adapters extend carry their own upstream licenses.
- Downloads last month
- -
Model tree for e54true/deeptable-checkpoints-deepseek7b
Base model
deepseek-ai/deepseek-llm-7b-chat