TabQueryBench commited on
Commit
e583d4b
·
verified ·
1 Parent(s): d5eba3c

Resume SynthData0523 main/n16 batch 2

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +124 -0
  2. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_config.py +62 -0
  3. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_flow_model.py +219 -0
  4. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_mlp.py +85 -0
  5. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_reconstructor.py +51 -0
  6. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_tokenizer.py +85 -0
  7. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_trainer.py +98 -0
  8. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_transformer.py +73 -0
  9. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_unimodmlp.py +72 -0
  10. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_utils.py +49 -0
  11. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/utils_train.py +205 -0
  12. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_tabbyflow_gen.py +51 -0
  13. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_tabbyflow_train.py +40 -0
  14. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/gen_20260513_134510.log +3 -0
  15. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/input_snapshot.json +3 -0
  16. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/models_tabbyflow/trained.pt +3 -0
  17. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/public_gate/normalized_schema_snapshot.json +3 -0
  18. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/public_gate/public_gate_report.json +3 -0
  19. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/public_gate/staged_input_manifest.json +3 -0
  20. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/run_config.json +3 -0
  21. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/runtime_result.json +3 -0
  22. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/public/staged_features.json +3 -0
  23. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/public/test.csv +3 -0
  24. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/public/train.csv +3 -0
  25. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/public/val.csv +3 -0
  26. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/tabbyflow/adapter_report.json +3 -0
  27. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/tabbyflow/adapter_transforms_applied.json +3 -0
  28. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/tabbyflow/model_input_manifest.json +3 -0
  29. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabbyflow-n16-227845-20260513_134510.csv +3 -0
  30. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabbyflow_train_meta.json +3 -0
  31. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/X_num_test.npy +3 -0
  32. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/X_num_train.npy +3 -0
  33. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/X_num_val.npy +3 -0
  34. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/info.json +3 -0
  35. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/real.csv +3 -0
  36. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/staged_features.json +3 -0
  37. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/test.csv +3 -0
  38. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/train.csv +3 -0
  39. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/val.csv +3 -0
  40. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/y_test.npy +3 -0
  41. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/y_train.npy +3 -0
  42. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/y_val.npy +3 -0
  43. SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/train_20260513_131701.log +3 -0
  44. SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/_tabddpm_sample.py +66 -0
  45. SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/_tabddpm_train.py +32 -0
  46. SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/config.toml +39 -0
  47. SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/config_sample_20260424_212203.toml +39 -0
  48. SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/config_sample_20260425_033728.toml +39 -0
  49. SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/config_sample_20260425_080506.toml +39 -0
  50. SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/data/X_num_test.npy +3 -0
.gitattributes CHANGED
@@ -12701,3 +12701,127 @@ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/re
12701
  SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/synthetic/pipeline_n16/real.csv filter=lfs diff=lfs merge=lfs -text
12702
  SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/synthetic/pipeline_n16/test.csv filter=lfs diff=lfs merge=lfs -text
12703
  SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/synthetic/pipeline_n16/val.csv filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12701
  SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/synthetic/pipeline_n16/real.csv filter=lfs diff=lfs merge=lfs -text
12702
  SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/synthetic/pipeline_n16/test.csv filter=lfs diff=lfs merge=lfs -text
12703
  SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/synthetic/pipeline_n16/val.csv filter=lfs diff=lfs merge=lfs -text
12704
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/gen_20260513_134510.log filter=lfs diff=lfs merge=lfs -text
12705
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/input_snapshot.json filter=lfs diff=lfs merge=lfs -text
12706
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/models_tabbyflow/trained.pt filter=lfs diff=lfs merge=lfs -text
12707
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/public_gate/normalized_schema_snapshot.json filter=lfs diff=lfs merge=lfs -text
12708
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/public_gate/public_gate_report.json filter=lfs diff=lfs merge=lfs -text
12709
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/public_gate/staged_input_manifest.json filter=lfs diff=lfs merge=lfs -text
12710
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/run_config.json filter=lfs diff=lfs merge=lfs -text
12711
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/runtime_result.json filter=lfs diff=lfs merge=lfs -text
12712
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/public/staged_features.json filter=lfs diff=lfs merge=lfs -text
12713
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text
12714
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text
12715
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text
12716
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/tabbyflow/adapter_report.json filter=lfs diff=lfs merge=lfs -text
12717
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/tabbyflow/adapter_transforms_applied.json filter=lfs diff=lfs merge=lfs -text
12718
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/tabbyflow/model_input_manifest.json filter=lfs diff=lfs merge=lfs -text
12719
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabbyflow-n16-227845-20260513_134510.csv filter=lfs diff=lfs merge=lfs -text
12720
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabbyflow_train_meta.json filter=lfs diff=lfs merge=lfs -text
12721
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/X_num_test.npy filter=lfs diff=lfs merge=lfs -text
12722
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/X_num_train.npy filter=lfs diff=lfs merge=lfs -text
12723
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/X_num_val.npy filter=lfs diff=lfs merge=lfs -text
12724
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/info.json filter=lfs diff=lfs merge=lfs -text
12725
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/real.csv filter=lfs diff=lfs merge=lfs -text
12726
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/staged_features.json filter=lfs diff=lfs merge=lfs -text
12727
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/test.csv filter=lfs diff=lfs merge=lfs -text
12728
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/train.csv filter=lfs diff=lfs merge=lfs -text
12729
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/val.csv filter=lfs diff=lfs merge=lfs -text
12730
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/y_test.npy filter=lfs diff=lfs merge=lfs -text
12731
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/y_train.npy filter=lfs diff=lfs merge=lfs -text
12732
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/y_val.npy filter=lfs diff=lfs merge=lfs -text
12733
+ SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/train_20260513_131701.log filter=lfs diff=lfs merge=lfs -text
12734
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/data/X_num_test.npy filter=lfs diff=lfs merge=lfs -text
12735
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/data/X_num_train.npy filter=lfs diff=lfs merge=lfs -text
12736
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/data/X_num_val.npy filter=lfs diff=lfs merge=lfs -text
12737
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/data/y_test.npy filter=lfs diff=lfs merge=lfs -text
12738
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/data/y_train.npy filter=lfs diff=lfs merge=lfs -text
12739
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/data/y_val.npy filter=lfs diff=lfs merge=lfs -text
12740
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/gen_20260321_164225.log filter=lfs diff=lfs merge=lfs -text
12741
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/gen_20260424_212203.log filter=lfs diff=lfs merge=lfs -text
12742
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/gen_20260425_033728.log filter=lfs diff=lfs merge=lfs -text
12743
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/gen_20260425_080506.log filter=lfs diff=lfs merge=lfs -text
12744
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/output/X_num_train.npy filter=lfs diff=lfs merge=lfs -text
12745
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/output/X_num_unnorm.npy filter=lfs diff=lfs merge=lfs -text
12746
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/output/loss.csv filter=lfs diff=lfs merge=lfs -text
12747
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/output/model.pt filter=lfs diff=lfs merge=lfs -text
12748
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/output/model_ema.pt filter=lfs diff=lfs merge=lfs -text
12749
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/output/y_train.npy filter=lfs diff=lfs merge=lfs -text
12750
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text
12751
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text
12752
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text
12753
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/tabddpm-n16-1000-20260321_164225.csv filter=lfs diff=lfs merge=lfs -text
12754
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/tabddpm-n16-227845-20260425_080506.csv filter=lfs diff=lfs merge=lfs -text
12755
+ SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/train_20260321_164024.log filter=lfs diff=lfs merge=lfs -text
12756
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/gen_20260501_194646.log filter=lfs diff=lfs merge=lfs -text
12757
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/input_snapshot.json filter=lfs diff=lfs merge=lfs -text
12758
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/models_tabdiff/trained.pt filter=lfs diff=lfs merge=lfs -text
12759
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/public_gate/normalized_schema_snapshot.json filter=lfs diff=lfs merge=lfs -text
12760
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/public_gate/public_gate_report.json filter=lfs diff=lfs merge=lfs -text
12761
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/public_gate/staged_input_manifest.json filter=lfs diff=lfs merge=lfs -text
12762
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/runtime_result.json filter=lfs diff=lfs merge=lfs -text
12763
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/staged/public/staged_features.json filter=lfs diff=lfs merge=lfs -text
12764
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text
12765
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text
12766
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text
12767
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/staged/tabdiff/adapter_report.json filter=lfs diff=lfs merge=lfs -text
12768
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/staged/tabdiff/adapter_transforms_applied.json filter=lfs diff=lfs merge=lfs -text
12769
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/staged/tabdiff/model_input_manifest.json filter=lfs diff=lfs merge=lfs -text
12770
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/tabdiff-n16-227845-20260501_194646.csv filter=lfs diff=lfs merge=lfs -text
12771
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/tabdiff_train_meta.json filter=lfs diff=lfs merge=lfs -text
12772
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/tabular_bundle/pipeline_n16/X_cat_test.npy filter=lfs diff=lfs merge=lfs -text
12773
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/tabular_bundle/pipeline_n16/X_cat_train.npy filter=lfs diff=lfs merge=lfs -text
12774
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/tabular_bundle/pipeline_n16/X_cat_val.npy filter=lfs diff=lfs merge=lfs -text
12775
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/tabular_bundle/pipeline_n16/X_num_test.npy filter=lfs diff=lfs merge=lfs -text
12776
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/tabular_bundle/pipeline_n16/X_num_train.npy filter=lfs diff=lfs merge=lfs -text
12777
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/tabular_bundle/pipeline_n16/X_num_val.npy filter=lfs diff=lfs merge=lfs -text
12778
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/tabular_bundle/pipeline_n16/info.json filter=lfs diff=lfs merge=lfs -text
12779
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/tabular_bundle/pipeline_n16/real.csv filter=lfs diff=lfs merge=lfs -text
12780
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/tabular_bundle/pipeline_n16/test.csv filter=lfs diff=lfs merge=lfs -text
12781
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/tabular_bundle/pipeline_n16/val.csv filter=lfs diff=lfs merge=lfs -text
12782
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/tabular_bundle/pipeline_n16/y_test.npy filter=lfs diff=lfs merge=lfs -text
12783
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/tabular_bundle/pipeline_n16/y_train.npy filter=lfs diff=lfs merge=lfs -text
12784
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/tabular_bundle/pipeline_n16/y_val.npy filter=lfs diff=lfs merge=lfs -text
12785
+ SynthData0523/main/n16/tabdiff/tabdiff-n16-20260501_191651/train_20260501_191724.log filter=lfs diff=lfs merge=lfs -text
12786
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/gen_20260512_082701.log filter=lfs diff=lfs merge=lfs -text
12787
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/input_snapshot.json filter=lfs diff=lfs merge=lfs -text
12788
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/public_gate/normalized_schema_snapshot.json filter=lfs diff=lfs merge=lfs -text
12789
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/public_gate/public_gate_report.json filter=lfs diff=lfs merge=lfs -text
12790
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/public_gate/staged_input_manifest.json filter=lfs diff=lfs merge=lfs -text
12791
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/run_config.json filter=lfs diff=lfs merge=lfs -text
12792
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/runtime_result.json filter=lfs diff=lfs merge=lfs -text
12793
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/staged/public/staged_features.json filter=lfs diff=lfs merge=lfs -text
12794
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text
12795
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text
12796
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text
12797
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/staged/tabpfgen/adapter_report.json filter=lfs diff=lfs merge=lfs -text
12798
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/staged/tabpfgen/adapter_transforms_applied.json filter=lfs diff=lfs merge=lfs -text
12799
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/staged/tabpfgen/model_input_manifest.json filter=lfs diff=lfs merge=lfs -text
12800
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/tabpfgen-n16-227845-20260512_082701.csv filter=lfs diff=lfs merge=lfs -text
12801
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/tabpfgen_meta.json filter=lfs diff=lfs merge=lfs -text
12802
+ SynthData0523/main/n16/tabpfgen/tabpfgen-n16-20260512_082648/train_20260512_082701.log filter=lfs diff=lfs merge=lfs -text
12803
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/data/tabsyn_n16/X_cat_test.npy filter=lfs diff=lfs merge=lfs -text
12804
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/data/tabsyn_n16/X_cat_train.npy filter=lfs diff=lfs merge=lfs -text
12805
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/data/tabsyn_n16/X_num_test.npy filter=lfs diff=lfs merge=lfs -text
12806
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/data/tabsyn_n16/X_num_train.npy filter=lfs diff=lfs merge=lfs -text
12807
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/data/tabsyn_n16/test.csv filter=lfs diff=lfs merge=lfs -text
12808
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/data/tabsyn_n16/train.csv filter=lfs diff=lfs merge=lfs -text
12809
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/data/tabsyn_n16/y_test.npy filter=lfs diff=lfs merge=lfs -text
12810
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/data/tabsyn_n16/y_train.npy filter=lfs diff=lfs merge=lfs -text
12811
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/gen_20260427_002515.log filter=lfs diff=lfs merge=lfs -text
12812
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text
12813
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text
12814
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text
12815
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/synthetic/tabsyn_n16/real.csv filter=lfs diff=lfs merge=lfs -text
12816
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/synthetic/tabsyn_n16/test.csv filter=lfs diff=lfs merge=lfs -text
12817
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/tabsyn-n16-227845-20260427_002515.csv filter=lfs diff=lfs merge=lfs -text
12818
+ SynthData0523/main/n16/tabsyn/tabsyn-n16-20260426_220916/train_20260426_221025.log filter=lfs diff=lfs merge=lfs -text
12819
+ SynthData0523/main/n16/tvae/tvae-n16-20260328_053742/gen_20260328_164845.log filter=lfs diff=lfs merge=lfs -text
12820
+ SynthData0523/main/n16/tvae/tvae-n16-20260328_053742/gen_20260330_070842.log filter=lfs diff=lfs merge=lfs -text
12821
+ SynthData0523/main/n16/tvae/tvae-n16-20260328_053742/models_300epochs/train_20260328_053849.log filter=lfs diff=lfs merge=lfs -text
12822
+ SynthData0523/main/n16/tvae/tvae-n16-20260328_053742/models_300epochs/tvae_300epochs.pt filter=lfs diff=lfs merge=lfs -text
12823
+ SynthData0523/main/n16/tvae/tvae-n16-20260328_053742/staged/public/test.csv filter=lfs diff=lfs merge=lfs -text
12824
+ SynthData0523/main/n16/tvae/tvae-n16-20260328_053742/staged/public/train.csv filter=lfs diff=lfs merge=lfs -text
12825
+ SynthData0523/main/n16/tvae/tvae-n16-20260328_053742/staged/public/val.csv filter=lfs diff=lfs merge=lfs -text
12826
+ SynthData0523/main/n16/tvae/tvae-n16-20260328_053742/tvae-n16-1000-20260328_164845.csv filter=lfs diff=lfs merge=lfs -text
12827
+ SynthData0523/main/n16/tvae/tvae-n16-20260328_053742/tvae-n16-227845-20260330_070842.csv filter=lfs diff=lfs merge=lfs -text
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_config.py ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from pathlib import Path
3
+
4
+ from src.util import load_config
5
+ from ef_vfm.modules.main_modules import UniModMLP
6
+
7
+
8
+ CONFIG_PATH = Path(__file__).resolve().parent.parent / "ef_vfm" / "configs" / "ef_vfm_configs.toml"
9
+
10
+
11
+ def test_load_config_returns_dict():
12
+ config = load_config(CONFIG_PATH)
13
+ assert isinstance(config, dict)
14
+
15
+
16
+ def test_config_has_expected_sections():
17
+ config = load_config(CONFIG_PATH)
18
+ for key in ['data', 'unimodmlp_params', 'train', 'sample']:
19
+ assert key in config, f"Missing section '{key}'"
20
+
21
+
22
+ def test_unimodmlp_params_complete():
23
+ config = load_config(CONFIG_PATH)
24
+ params = config['unimodmlp_params']
25
+ required = ['num_layers', 'd_token', 'n_head', 'factor', 'bias', 'dim_t', 'use_mlp', 'activation']
26
+ for key in required:
27
+ assert key in params, f"Missing param '{key}' in unimodmlp_params"
28
+
29
+
30
+ def test_activation_value_is_valid():
31
+ config = load_config(CONFIG_PATH)
32
+ activation = config['unimodmlp_params']['activation']
33
+ assert activation in ('relu', 'gelu', 'silu'), f"Invalid activation '{activation}'"
34
+
35
+
36
+ def test_train_main_has_new_params():
37
+ """Verify the recently added config params are present."""
38
+ config = load_config(CONFIG_PATH)
39
+ train = config['train']['main']
40
+ assert 'max_grad_norm' in train
41
+ assert 'warmup_epochs' in train
42
+ assert isinstance(train['max_grad_norm'], (int, float))
43
+ assert isinstance(train['warmup_epochs'], (int, float))
44
+
45
+
46
+ def test_config_values_create_model():
47
+ config = load_config(CONFIG_PATH)
48
+ params = config['unimodmlp_params']
49
+ # Use dummy dimensions; the point is that config params are valid for the constructor
50
+ model = UniModMLP(
51
+ d_numerical=4,
52
+ categories=[3, 5, 2],
53
+ num_layers=params['num_layers'],
54
+ d_token=params['d_token'],
55
+ n_head=params['n_head'],
56
+ factor=params['factor'],
57
+ bias=params['bias'],
58
+ dim_t=params['dim_t'],
59
+ use_mlp=params['use_mlp'],
60
+ activation=params['activation'],
61
+ )
62
+ assert model is not None
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_flow_model.py ADDED
@@ -0,0 +1,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import numpy as np
3
+ from unittest.mock import patch
4
+
5
+ from ef_vfm.models.flow_model import ExpVFM, Velocity
6
+ from ef_vfm.modules.main_modules import UniModMLP
7
+
8
+
9
+ # ---- mixed_loss tests ----
10
+
11
+ def test_mixed_loss_returns_two_scalars(make_flow_model, make_dummy_inputs, dims):
12
+ d = dims
13
+ flow = make_flow_model(d["d_numerical"], d["categories"])
14
+ _, _, x_cat_int, _ = make_dummy_inputs(d["d_numerical"], d["categories"], d["batch_size"])
15
+ x_num = torch.randn(d["batch_size"], d["d_numerical"])
16
+ x = torch.cat([x_num, x_cat_int.float()], dim=1)
17
+ d_loss, c_loss = flow.mixed_loss(x)
18
+ assert d_loss.dim() == 0 or d_loss.numel() == 1
19
+ assert c_loss.dim() == 0 or c_loss.numel() == 1
20
+
21
+
22
+ def test_mixed_loss_finite(make_flow_model, make_dummy_inputs, dims):
23
+ d = dims
24
+ flow = make_flow_model(d["d_numerical"], d["categories"])
25
+ _, _, x_cat_int, _ = make_dummy_inputs(d["d_numerical"], d["categories"], d["batch_size"])
26
+ x_num = torch.randn(d["batch_size"], d["d_numerical"])
27
+ x = torch.cat([x_num, x_cat_int.float()], dim=1)
28
+ d_loss, c_loss = flow.mixed_loss(x)
29
+ assert torch.isfinite(d_loss).all()
30
+ assert torch.isfinite(c_loss).all()
31
+
32
+
33
+ def test_mixed_loss_gradients_flow(make_flow_model, make_dummy_inputs, dims):
34
+ d = dims
35
+ flow = make_flow_model(d["d_numerical"], d["categories"])
36
+ _, _, x_cat_int, _ = make_dummy_inputs(d["d_numerical"], d["categories"], d["batch_size"])
37
+ x_num = torch.randn(d["batch_size"], d["d_numerical"])
38
+ x = torch.cat([x_num, x_cat_int.float()], dim=1)
39
+ d_loss, c_loss = flow.mixed_loss(x)
40
+ total = d_loss + c_loss
41
+ total.backward()
42
+ grads = [p.grad for p in flow.parameters() if p.grad is not None]
43
+ assert len(grads) > 0
44
+
45
+
46
+ def test_mixed_loss_numerical_only(make_flow_model, make_dummy_inputs, dims_numerical_only):
47
+ d = dims_numerical_only
48
+ flow = make_flow_model(d["d_numerical"], d["categories"])
49
+ x = torch.randn(d["batch_size"], d["d_numerical"])
50
+ d_loss, c_loss = flow.mixed_loss(x)
51
+ assert d_loss.item() == 0.0 # no discrete features
52
+ assert c_loss.item() > 0.0
53
+
54
+
55
+ # ---- sample tests (with mocked odeint) ----
56
+
57
+ def _make_flow(d_numerical, categories):
58
+ cats_list = list(categories) if categories is not None else []
59
+ cats_np = np.array(cats_list)
60
+ model = UniModMLP(d_numerical, cats_list, 1, 16, n_head=1, factor=4, dim_t=64, activation='gelu')
61
+ return ExpVFM(cats_np, d_numerical, model, device=torch.device('cpu'))
62
+
63
+
64
+ def test_sample_output_shape(dims):
65
+ d = dims
66
+ flow = _make_flow(d["d_numerical"], d["categories"])
67
+ d_in = d["d_numerical"] + sum(d["categories"])
68
+ n = 5
69
+ fake_trajectory = torch.randn(2, n, d_in)
70
+ with patch("ef_vfm.models.flow_model.odeint", return_value=fake_trajectory):
71
+ result = flow.sample(n)
72
+ d_out = d["d_numerical"] + len(d["categories"])
73
+ assert result.shape == (n, d_out)
74
+
75
+
76
+ def test_sample_categorical_in_range(dims):
77
+ d = dims
78
+ flow = _make_flow(d["d_numerical"], d["categories"])
79
+ d_in = d["d_numerical"] + sum(d["categories"])
80
+ n = 16
81
+ fake_trajectory = torch.randn(2, n, d_in)
82
+ with patch("ef_vfm.models.flow_model.odeint", return_value=fake_trajectory):
83
+ result = flow.sample(n)
84
+ for i, k in enumerate(d["categories"]):
85
+ col = d["d_numerical"] + i
86
+ assert (result[:, col] >= 0).all()
87
+ assert (result[:, col] < k).all()
88
+
89
+
90
+ def test_sample_returns_cpu(dims):
91
+ d = dims
92
+ flow = _make_flow(d["d_numerical"], d["categories"])
93
+ d_in = d["d_numerical"] + sum(d["categories"])
94
+ fake_trajectory = torch.randn(2, 4, d_in)
95
+ with patch("ef_vfm.models.flow_model.odeint", return_value=fake_trajectory):
96
+ result = flow.sample(4)
97
+ assert result.device == torch.device('cpu')
98
+
99
+
100
+ def test_sample_single_sample(dims):
101
+ d = dims
102
+ flow = _make_flow(d["d_numerical"], d["categories"])
103
+ d_in = d["d_numerical"] + sum(d["categories"])
104
+ fake_trajectory = torch.randn(2, 1, d_in)
105
+ with patch("ef_vfm.models.flow_model.odeint", return_value=fake_trajectory):
106
+ result = flow.sample(1)
107
+ d_out = d["d_numerical"] + len(d["categories"])
108
+ assert result.shape == (1, d_out)
109
+
110
+
111
+ # ---- to_one_hot tests ----
112
+
113
+ def test_to_one_hot_shape(dims):
114
+ d = dims
115
+ flow = _make_flow(d["d_numerical"], d["categories"])
116
+ cats = d["categories"]
117
+ x_cat = torch.stack([torch.randint(0, k, (8,)) for k in cats], dim=1)
118
+ oh = flow.to_one_hot(x_cat)
119
+ assert oh.shape == (8, sum(cats))
120
+
121
+
122
+ def test_to_one_hot_roundtrip(dims):
123
+ d = dims
124
+ flow = _make_flow(d["d_numerical"], d["categories"])
125
+ cats = d["categories"]
126
+ x_cat = torch.stack([torch.randint(0, k, (8,)) for k in cats], dim=1)
127
+ oh = flow.to_one_hot(x_cat)
128
+ # Recover indices via argmax per category slice
129
+ idx = 0
130
+ for i, k in enumerate(cats):
131
+ recovered = oh[:, idx:idx + k].argmax(dim=1)
132
+ assert torch.equal(recovered, x_cat[:, i])
133
+ idx += k
134
+
135
+
136
+ def test_to_one_hot_binary_values(dims):
137
+ d = dims
138
+ flow = _make_flow(d["d_numerical"], d["categories"])
139
+ cats = d["categories"]
140
+ x_cat = torch.stack([torch.randint(0, k, (8,)) for k in cats], dim=1)
141
+ oh = flow.to_one_hot(x_cat)
142
+ assert set(oh.unique().tolist()).issubset({0, 1})
143
+
144
+
145
+ # ---- Regression tests ----
146
+
147
+ def test_regression_d_in_no_extra_len():
148
+ """d_in must be num_numerical + sum(num_classes), NOT + len(num_classes)."""
149
+ d_numerical = 4
150
+ categories = np.array([3, 5, 2])
151
+ flow = _make_flow(d_numerical, categories)
152
+ expected_d_in = d_numerical + sum(categories) # 14, not 17
153
+ assert flow.num_numerical_features + sum(flow.num_classes) == expected_d_in
154
+
155
+
156
+ def test_regression_sampling_indices_correct():
157
+ """Categorical argmax must go to columns [d_num, d_num+1, ...], not [0, 1, ...]."""
158
+ d_numerical = 4
159
+ categories = np.array([3, 5, 2])
160
+ n = 10
161
+ d_in = d_numerical + sum(categories)
162
+ d_out = d_numerical + len(categories)
163
+
164
+ # Simulate the post-processing from sample()
165
+ out = torch.randn(n, d_in)
166
+ sample = torch.zeros(n, d_out)
167
+ sample[:, :d_numerical] = out[:, :d_numerical]
168
+
169
+ idx = d_numerical # correct starting index
170
+ for i, val in enumerate(categories):
171
+ col = d_numerical + i # correct column
172
+ sample[:, col] = torch.argmax(out[:, idx:idx + val], dim=1)
173
+ idx += val
174
+
175
+ # Numerical columns must be untouched
176
+ assert torch.allclose(sample[:, :d_numerical], out[:, :d_numerical])
177
+ # Categorical columns at correct positions
178
+ for i, val in enumerate(categories):
179
+ col = d_numerical + i
180
+ assert (sample[:, col] >= 0).all()
181
+ assert (sample[:, col] < val).all()
182
+
183
+
184
+ def test_regression_d_out_correct():
185
+ """d_out must be d_num + len(categories)."""
186
+ d_numerical = 4
187
+ categories = np.array([3, 5, 2])
188
+ flow = _make_flow(d_numerical, categories)
189
+ expected_d_out = d_numerical + len(categories) # 7
190
+ assert expected_d_out == 7
191
+
192
+
193
+ # ---- Velocity tests ----
194
+
195
+ def test_velocity_output_shape(dims):
196
+ d = dims
197
+ cats_list = list(d["categories"])
198
+ model = UniModMLP(d["d_numerical"], cats_list, 1, d["d_token"],
199
+ n_head=1, factor=4, dim_t=64, activation='gelu')
200
+ vel = Velocity(model)
201
+ d_in = d["d_numerical"] + sum(d["categories"])
202
+ x = torch.randn(d["batch_size"], d_in)
203
+ t = torch.tensor(0.5)
204
+ out = vel(t, x)
205
+ assert out.shape == (d["batch_size"], d_in)
206
+
207
+
208
+ def test_velocity_scalar_t_broadcast(dims):
209
+ d = dims
210
+ cats_list = list(d["categories"])
211
+ model = UniModMLP(d["d_numerical"], cats_list, 1, d["d_token"],
212
+ n_head=1, factor=4, dim_t=64, activation='gelu')
213
+ vel = Velocity(model)
214
+ d_in = d["d_numerical"] + sum(d["categories"])
215
+ x = torch.randn(d["batch_size"], d_in)
216
+ # Scalar t should work (gets broadcast internally)
217
+ t = torch.tensor(0.3)
218
+ out = vel(t, x)
219
+ assert out.shape == x.shape
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_mlp.py ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import torch.nn as nn
3
+ from ef_vfm.modules.main_modules import MLP, PositionalEmbedding
4
+
5
+
6
+ # ---- PositionalEmbedding tests ----
7
+
8
+ def test_positional_embedding_shape():
9
+ pe = PositionalEmbedding(num_channels=64)
10
+ x = torch.rand(8)
11
+ out = pe(x)
12
+ assert out.shape == (8, 64)
13
+
14
+
15
+ def test_positional_embedding_bounded():
16
+ pe = PositionalEmbedding(num_channels=64)
17
+ x = torch.rand(8)
18
+ out = pe(x)
19
+ assert out.min() >= -1.0
20
+ assert out.max() <= 1.0
21
+
22
+
23
+ def test_positional_embedding_deterministic():
24
+ pe = PositionalEmbedding(num_channels=64)
25
+ x = torch.tensor([0.1, 0.5, 0.9])
26
+ out1 = pe(x)
27
+ out2 = pe(x)
28
+ assert torch.equal(out1, out2)
29
+
30
+
31
+ def test_positional_embedding_different_timesteps():
32
+ pe = PositionalEmbedding(num_channels=64)
33
+ t1 = torch.tensor([0.1])
34
+ t2 = torch.tensor([0.9])
35
+ assert not torch.allclose(pe(t1), pe(t2))
36
+
37
+
38
+ # ---- MLP tests ----
39
+
40
+ def test_mlp_output_shape(make_mlp):
41
+ mlp = make_mlp(d_in=32, dim_t=64)
42
+ x = torch.randn(8, 32)
43
+ t = torch.rand(8)
44
+ out = mlp(x, t)
45
+ assert out.shape == (8, 32)
46
+
47
+
48
+ def test_mlp_use_mlp_true(make_mlp):
49
+ mlp = make_mlp(d_in=32, dim_t=64, use_mlp=True)
50
+ assert isinstance(mlp.mlp, nn.Sequential)
51
+
52
+
53
+ def test_mlp_use_mlp_false(make_mlp):
54
+ mlp = make_mlp(d_in=32, dim_t=64, use_mlp=False)
55
+ assert isinstance(mlp.mlp, nn.Linear)
56
+
57
+
58
+ def test_mlp_time_conditioning(make_mlp):
59
+ mlp = make_mlp(d_in=32, dim_t=64)
60
+ mlp.eval()
61
+ x = torch.randn(4, 32)
62
+ t1 = torch.zeros(4)
63
+ t2 = torch.ones(4)
64
+ out1 = mlp(x, t1)
65
+ out2 = mlp(x, t2)
66
+ assert not torch.allclose(out1, out2)
67
+
68
+
69
+ def test_mlp_gradient_flows(make_mlp):
70
+ mlp = make_mlp(d_in=32, dim_t=64)
71
+ x = torch.randn(4, 32)
72
+ t = torch.rand(4)
73
+ out = mlp(x, t)
74
+ out.sum().backward()
75
+ assert mlp.proj.weight.grad is not None and mlp.proj.weight.grad.abs().sum() > 0
76
+ assert mlp.map_noise.num_channels == 64 # sanity check on PE config
77
+
78
+
79
+ def test_mlp_different_dim_t(make_mlp):
80
+ for dim_t in [32, 128, 256]:
81
+ mlp = make_mlp(d_in=16, dim_t=dim_t)
82
+ x = torch.randn(4, 16)
83
+ t = torch.rand(4)
84
+ out = mlp(x, t)
85
+ assert out.shape == (4, 16)
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_reconstructor.py ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import numpy as np
3
+ from ef_vfm.modules.transformer import Reconstructor
4
+
5
+
6
+ def test_output_shapes_mixed(make_reconstructor, dims):
7
+ d = dims
8
+ r = make_reconstructor(d["d_numerical"], d["categories"], d["d_token"])
9
+ seq_len = d["d_numerical"] + len(d["categories"])
10
+ h = torch.randn(d["batch_size"], seq_len, d["d_token"])
11
+ x_num, x_cat = r(h)
12
+ assert x_num.shape == (d["batch_size"], d["d_numerical"])
13
+ assert len(x_cat) == len(d["categories"])
14
+ for i, k in enumerate(d["categories"]):
15
+ assert x_cat[i].shape == (d["batch_size"], k)
16
+
17
+
18
+ def test_categorical_count(make_reconstructor, dims):
19
+ d = dims
20
+ r = make_reconstructor(d["d_numerical"], d["categories"], d["d_token"])
21
+ seq_len = d["d_numerical"] + len(d["categories"])
22
+ h = torch.randn(d["batch_size"], seq_len, d["d_token"])
23
+ _, x_cat = r(h)
24
+ assert len(x_cat) == len(d["categories"])
25
+
26
+
27
+ def test_empty_categories(make_reconstructor):
28
+ r = make_reconstructor(4, np.array([]), 16)
29
+ h = torch.randn(8, 4, 16)
30
+ x_num, x_cat = r(h)
31
+ assert x_num.shape == (8, 4)
32
+ assert len(x_cat) == 0
33
+
34
+
35
+ def test_weight_shape(make_reconstructor, dims):
36
+ d = dims
37
+ r = make_reconstructor(d["d_numerical"], d["categories"], d["d_token"])
38
+ assert r.weight.shape == (d["d_numerical"], d["d_token"])
39
+
40
+
41
+ def test_gradient_flows(make_reconstructor, dims):
42
+ d = dims
43
+ r = make_reconstructor(d["d_numerical"], d["categories"], d["d_token"])
44
+ seq_len = d["d_numerical"] + len(d["categories"])
45
+ h = torch.randn(d["batch_size"], seq_len, d["d_token"])
46
+ x_num, x_cat = r(h)
47
+ loss = x_num.sum() + sum(c.sum() for c in x_cat)
48
+ loss.backward()
49
+ assert r.weight.grad is not None and r.weight.grad.abs().sum() > 0
50
+ for recon in r.cat_recons:
51
+ assert recon.weight.grad is not None
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_tokenizer.py ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import numpy as np
3
+
4
+
5
+ def test_forward_shape_mixed(make_tokenizer, make_dummy_inputs, dims):
6
+ tok = make_tokenizer(dims["d_numerical"], dims["categories"], dims["d_token"])
7
+ x_num, x_cat_oh, _, _ = make_dummy_inputs(dims["d_numerical"], dims["categories"], dims["batch_size"])
8
+ out = tok(x_num, x_cat_oh)
9
+ expected_seq = 1 + dims["d_numerical"] + len(dims["categories"])
10
+ assert out.shape == (dims["batch_size"], expected_seq, dims["d_token"])
11
+
12
+
13
+ def test_forward_shape_numerical_only(make_tokenizer, make_dummy_inputs, dims_numerical_only):
14
+ d = dims_numerical_only
15
+ tok = make_tokenizer(d["d_numerical"], d["categories"], d["d_token"])
16
+ x_num, _, _, _ = make_dummy_inputs(d["d_numerical"], d["categories"], d["batch_size"])
17
+ out = tok(x_num, None)
18
+ expected_seq = 1 + d["d_numerical"]
19
+ assert out.shape == (d["batch_size"], expected_seq, d["d_token"])
20
+
21
+
22
+ def test_forward_shape_single_feature(make_tokenizer, make_dummy_inputs, dims_single):
23
+ d = dims_single
24
+ tok = make_tokenizer(d["d_numerical"], d["categories"], d["d_token"])
25
+ x_num, x_cat_oh, _, _ = make_dummy_inputs(d["d_numerical"], d["categories"], d["batch_size"])
26
+ out = tok(x_num, x_cat_oh)
27
+ expected_seq = 1 + d["d_numerical"] + len(d["categories"])
28
+ assert out.shape == (d["batch_size"], expected_seq, d["d_token"])
29
+
30
+
31
+ def test_n_tokens_property(make_tokenizer, dims):
32
+ tok = make_tokenizer(dims["d_numerical"], dims["categories"], dims["d_token"])
33
+ expected = dims["d_numerical"] + 1 + len(dims["categories"])
34
+ assert tok.n_tokens == expected
35
+
36
+
37
+ def test_n_tokens_numerical_only(make_tokenizer, dims_numerical_only):
38
+ d = dims_numerical_only
39
+ tok = make_tokenizer(d["d_numerical"], d["categories"], d["d_token"])
40
+ assert tok.n_tokens == d["d_numerical"] + 1
41
+
42
+
43
+ def test_cls_token_position(make_tokenizer, make_dummy_inputs, dims):
44
+ tok = make_tokenizer(dims["d_numerical"], dims["categories"], dims["d_token"], bias=False)
45
+ x_num, x_cat_oh, _, _ = make_dummy_inputs(dims["d_numerical"], dims["categories"], dims["batch_size"])
46
+ out = tok(x_num, x_cat_oh)
47
+ # CLS token: ones * weight[0], so all batch rows should have the same CLS token
48
+ cls_tokens = out[:, 0, :]
49
+ assert torch.allclose(cls_tokens[0], cls_tokens[1])
50
+ assert torch.allclose(cls_tokens[0], tok.weight[0])
51
+
52
+
53
+ def test_bias_vs_no_bias(make_tokenizer, make_dummy_inputs, dims):
54
+ d = dims
55
+ tok_bias = make_tokenizer(d["d_numerical"], d["categories"], d["d_token"], bias=True)
56
+ tok_no_bias = make_tokenizer(d["d_numerical"], d["categories"], d["d_token"], bias=False)
57
+ assert tok_bias.bias is not None
58
+ assert tok_no_bias.bias is None
59
+
60
+
61
+ def test_category_offsets_values(make_tokenizer):
62
+ cats = np.array([3, 5, 2])
63
+ tok = make_tokenizer(4, cats, 16)
64
+ assert torch.equal(tok.category_offsets, torch.tensor([0, 3, 8]))
65
+ assert torch.equal(tok.category_ends, torch.tensor([3, 8, 10]))
66
+
67
+
68
+ def test_cat_weight_shape(make_tokenizer, dims):
69
+ tok = make_tokenizer(dims["d_numerical"], dims["categories"], dims["d_token"])
70
+ assert tok.cat_weight.shape == (sum(dims["categories"]), dims["d_token"])
71
+
72
+
73
+ def test_weight_shape(make_tokenizer, dims):
74
+ tok = make_tokenizer(dims["d_numerical"], dims["categories"], dims["d_token"])
75
+ assert tok.weight.shape == (dims["d_numerical"] + 1, dims["d_token"])
76
+
77
+
78
+ def test_gradient_flows(make_tokenizer, make_dummy_inputs, dims):
79
+ tok = make_tokenizer(dims["d_numerical"], dims["categories"], dims["d_token"])
80
+ x_num, x_cat_oh, _, _ = make_dummy_inputs(dims["d_numerical"], dims["categories"], dims["batch_size"])
81
+ out = tok(x_num, x_cat_oh)
82
+ out.sum().backward()
83
+ assert tok.weight.grad is not None and tok.weight.grad.abs().sum() > 0
84
+ assert tok.cat_weight.grad is not None and tok.cat_weight.grad.abs().sum() > 0
85
+ assert tok.bias.grad is not None and tok.bias.grad.abs().sum() > 0
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_trainer.py ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import numpy as np
3
+
4
+
5
+ # ---- Gradient clipping tests ----
6
+
7
+ def test_grad_clipping_applied(make_trainer, tmp_path):
8
+ trainer = make_trainer(max_grad_norm=0.5, tmp_path=tmp_path)
9
+ batch = next(iter(trainer.train_iter))
10
+ trainer._run_step(batch, closs_weight=1.0, dloss_weight=1.0)
11
+ # After clipping, total gradient norm should be <= max_grad_norm (with tolerance)
12
+ total_norm = torch.nn.utils.clip_grad_norm_(trainer.flow.parameters(), float('inf'))
13
+ # Gradients were already clipped in _run_step, then optimizer.step() zeroed them.
14
+ # So we re-run to check: do a fresh forward-backward without step
15
+ trainer.optimizer.zero_grad()
16
+ dloss, closs = trainer.flow.mixed_loss(batch.to(trainer.device))
17
+ (dloss + closs).backward()
18
+ torch.nn.utils.clip_grad_norm_(trainer.flow.parameters(), 0.5)
19
+ total_norm = 0.0
20
+ for p in trainer.flow.parameters():
21
+ if p.grad is not None:
22
+ total_norm += p.grad.data.norm(2).item() ** 2
23
+ total_norm = total_norm ** 0.5
24
+ assert total_norm <= 0.5 + 1e-6
25
+
26
+
27
+ def test_grad_clipping_disabled(make_trainer, tmp_path):
28
+ trainer = make_trainer(max_grad_norm=0, tmp_path=tmp_path)
29
+ assert trainer.max_grad_norm == 0
30
+
31
+
32
+ def test_run_step_returns_losses(make_trainer, tmp_path):
33
+ trainer = make_trainer(tmp_path=tmp_path)
34
+ batch = next(iter(trainer.train_iter))
35
+ dloss, closs = trainer._run_step(batch, closs_weight=1.0, dloss_weight=1.0)
36
+ assert isinstance(dloss, torch.Tensor)
37
+ assert isinstance(closs, torch.Tensor)
38
+ assert torch.isfinite(dloss)
39
+ assert torch.isfinite(closs)
40
+
41
+
42
+ # ---- LR warmup tests ----
43
+
44
+ def test_warmup_lr_linear_ramp(make_trainer, tmp_path):
45
+ init_lr = 0.01
46
+ warmup = 5
47
+ trainer = make_trainer(lr=init_lr, warmup_epochs=warmup, tmp_path=tmp_path)
48
+ # Simulate warmup epochs
49
+ for epoch in range(warmup):
50
+ expected_lr = init_lr * (epoch + 1) / warmup
51
+ if trainer.warmup_epochs > 0 and (epoch + 1) <= trainer.warmup_epochs:
52
+ warmup_lr = trainer.init_lr * (epoch + 1) / trainer.warmup_epochs
53
+ for pg in trainer.optimizer.param_groups:
54
+ pg["lr"] = warmup_lr
55
+ actual_lr = trainer.optimizer.param_groups[0]["lr"]
56
+ assert abs(actual_lr - expected_lr) < 1e-8, f"Epoch {epoch}: expected {expected_lr}, got {actual_lr}"
57
+
58
+
59
+ def test_warmup_overrides_scheduler(make_trainer, tmp_path):
60
+ trainer = make_trainer(warmup_epochs=10, lr_scheduler='reduce_lr_on_plateau', tmp_path=tmp_path)
61
+ initial_lr = trainer.optimizer.param_groups[0]["lr"]
62
+ # During warmup, scheduler.step should NOT be called (we just set LR directly)
63
+ # Simulate epoch 1 warmup
64
+ warmup_lr = trainer.init_lr * 1 / trainer.warmup_epochs
65
+ for pg in trainer.optimizer.param_groups:
66
+ pg["lr"] = warmup_lr
67
+ assert trainer.optimizer.param_groups[0]["lr"] == warmup_lr
68
+ assert warmup_lr < initial_lr # warmup starts lower
69
+
70
+
71
+ def test_no_warmup_when_zero(make_trainer, tmp_path):
72
+ trainer = make_trainer(warmup_epochs=0, tmp_path=tmp_path)
73
+ assert trainer.warmup_epochs == 0
74
+ # LR should be the init_lr from the start
75
+ assert trainer.optimizer.param_groups[0]["lr"] == trainer.init_lr
76
+
77
+
78
+ # ---- LR scheduler tests ----
79
+
80
+ def test_anneal_lr(make_trainer, tmp_path):
81
+ trainer = make_trainer(lr=0.01, steps=100, lr_scheduler='anneal', tmp_path=tmp_path)
82
+ trainer._anneal_lr(50)
83
+ expected = 0.01 * (1 - 50 / 100)
84
+ assert abs(trainer.optimizer.param_groups[0]["lr"] - expected) < 1e-8
85
+
86
+
87
+ # ---- EMA tests ----
88
+
89
+ def test_ema_model_created(make_trainer, tmp_path):
90
+ trainer = make_trainer(tmp_path=tmp_path)
91
+ # EMA model should exist and have same structure as flow._vf_fn
92
+ assert trainer.ema_model is not None
93
+ ema_params = list(trainer.ema_model.parameters())
94
+ model_params = list(trainer.flow._vf_fn.parameters())
95
+ assert len(ema_params) == len(model_params)
96
+ # EMA params should be detached (requires_grad=False)
97
+ for p in ema_params:
98
+ assert not p.requires_grad
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_transformer.py ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pytest
2
+ import torch
3
+ from ef_vfm.modules.transformer import Transformer
4
+
5
+
6
+ def test_output_shape_preserved(make_transformer):
7
+ t = make_transformer(d_token=16, n_layers=2)
8
+ x = torch.randn(4, 5, 16)
9
+ out = t(x)
10
+ assert out.shape == x.shape
11
+
12
+
13
+ def test_activation_gelu(make_transformer):
14
+ t = make_transformer(d_token=16, activation='gelu')
15
+ x = torch.randn(4, 5, 16)
16
+ out = t(x)
17
+ assert out.shape == x.shape
18
+
19
+
20
+ def test_activation_silu(make_transformer):
21
+ t = make_transformer(d_token=16, activation='silu')
22
+ x = torch.randn(4, 5, 16)
23
+ out = t(x)
24
+ assert out.shape == x.shape
25
+
26
+
27
+ def test_activation_relu(make_transformer):
28
+ t = make_transformer(d_token=16, activation='relu')
29
+ x = torch.randn(4, 5, 16)
30
+ out = t(x)
31
+ assert out.shape == x.shape
32
+
33
+
34
+ def test_invalid_activation_raises():
35
+ with pytest.raises(ValueError, match="Unknown activation"):
36
+ Transformer(2, 16, 1, 16, 4, activation='bad')
37
+
38
+
39
+ def test_prenorm_first_layer_no_norm0():
40
+ t = Transformer(2, 16, 1, 16, 4, prenormalization=True)
41
+ assert 'norm0' not in t.layers[0]
42
+ # Second layer should have norm0
43
+ assert 'norm0' in t.layers[1]
44
+
45
+
46
+ def test_no_prenorm_all_layers_have_norm0():
47
+ t = Transformer(2, 16, 1, 16, 4, prenormalization=False)
48
+ for layer in t.layers:
49
+ assert 'norm0' in layer
50
+
51
+
52
+ def test_single_layer():
53
+ t = Transformer(1, 16, 1, 16, 4)
54
+ x = torch.randn(4, 5, 16)
55
+ out = t(x)
56
+ assert out.shape == x.shape
57
+
58
+
59
+ def test_multi_layer():
60
+ t = Transformer(4, 16, 1, 16, 4)
61
+ x = torch.randn(4, 5, 16)
62
+ out = t(x)
63
+ assert out.shape == x.shape
64
+
65
+
66
+ def test_gradient_flows(make_transformer):
67
+ t = make_transformer(d_token=16, n_layers=2)
68
+ x = torch.randn(4, 5, 16, requires_grad=True)
69
+ out = t(x)
70
+ out.sum().backward()
71
+ assert x.grad is not None and x.grad.abs().sum() > 0
72
+ # Check gradients through at least the first layer's linear0
73
+ assert t.layers[0]['linear0'].weight.grad is not None
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_unimodmlp.py ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import numpy as np
3
+
4
+
5
+ def test_forward_shapes_mixed(make_unimodmlp, make_dummy_inputs, dims):
6
+ d = dims
7
+ model = make_unimodmlp(d["d_numerical"], d["categories"], d_token=d["d_token"])
8
+ x_num, x_cat_oh, _, t = make_dummy_inputs(d["d_numerical"], d["categories"], d["batch_size"])
9
+ x_num_pred, x_cat_pred = model(x_num, x_cat_oh, t)
10
+ assert x_num_pred.shape == (d["batch_size"], d["d_numerical"])
11
+ assert x_cat_pred.shape == (d["batch_size"], sum(d["categories"]))
12
+
13
+
14
+ def test_forward_shapes_numerical_only(make_unimodmlp, make_dummy_inputs, dims_numerical_only):
15
+ d = dims_numerical_only
16
+ model = make_unimodmlp(d["d_numerical"], d["categories"], d_token=d["d_token"])
17
+ x_num, _, _, t = make_dummy_inputs(d["d_numerical"], d["categories"], d["batch_size"])
18
+ x_cat = torch.zeros(d["batch_size"], 0)
19
+ x_num_pred, x_cat_pred = model(x_num, x_cat, t)
20
+ assert x_num_pred.shape == (d["batch_size"], d["d_numerical"])
21
+ # When no categories, cat_pred should be zeros with shape matching x_cat
22
+ assert x_cat_pred.shape[0] == d["batch_size"]
23
+ assert torch.all(x_cat_pred == 0)
24
+
25
+
26
+ def test_forward_shapes_single_feature(make_unimodmlp, make_dummy_inputs, dims_single):
27
+ d = dims_single
28
+ model = make_unimodmlp(d["d_numerical"], d["categories"], d_token=d["d_token"])
29
+ x_num, x_cat_oh, _, t = make_dummy_inputs(d["d_numerical"], d["categories"], d["batch_size"])
30
+ x_num_pred, x_cat_pred = model(x_num, x_cat_oh, t)
31
+ assert x_num_pred.shape == (d["batch_size"], d["d_numerical"])
32
+ assert x_cat_pred.shape == (d["batch_size"], sum(d["categories"]))
33
+
34
+
35
+ def test_d_in_computation(make_unimodmlp, dims):
36
+ d = dims
37
+ model = make_unimodmlp(d["d_numerical"], d["categories"], d_token=d["d_token"])
38
+ expected = d["d_token"] * (d["d_numerical"] + len(d["categories"]))
39
+ assert model.mlp.proj.in_features == expected
40
+
41
+
42
+ def test_output_dtypes(make_unimodmlp, make_dummy_inputs, dims):
43
+ d = dims
44
+ model = make_unimodmlp(d["d_numerical"], d["categories"], d_token=d["d_token"])
45
+ x_num, x_cat_oh, _, t = make_dummy_inputs(d["d_numerical"], d["categories"], d["batch_size"])
46
+ x_num_pred, x_cat_pred = model(x_num, x_cat_oh, t)
47
+ assert x_num_pred.dtype == torch.float32
48
+ assert x_cat_pred.dtype == torch.float32
49
+
50
+
51
+ def test_gradient_flows_end_to_end(make_unimodmlp, make_dummy_inputs, dims):
52
+ d = dims
53
+ model = make_unimodmlp(d["d_numerical"], d["categories"], d_token=d["d_token"])
54
+ x_num, x_cat_oh, _, t = make_dummy_inputs(d["d_numerical"], d["categories"], d["batch_size"])
55
+ x_num_pred, x_cat_pred = model(x_num, x_cat_oh, t)
56
+ loss = x_num_pred.sum() + x_cat_pred.sum()
57
+ loss.backward()
58
+ params_with_grad = sum(1 for p in model.parameters() if p.grad is not None and p.grad.abs().sum() > 0)
59
+ total_params = sum(1 for _ in model.parameters())
60
+ # Transformer.head is defined but unused in forward(), so not all params get gradients
61
+ assert params_with_grad > total_params * 0.8, f"Only {params_with_grad}/{total_params} params got gradients"
62
+
63
+
64
+ def test_different_activations(make_unimodmlp, make_dummy_inputs, dims):
65
+ d = dims
66
+ x_num, x_cat_oh, _, t = make_dummy_inputs(d["d_numerical"], d["categories"], d["batch_size"])
67
+ for act in ['relu', 'gelu', 'silu']:
68
+ model = make_unimodmlp(d["d_numerical"], d["categories"], d_token=d["d_token"], activation=act)
69
+ x_num_pred, x_cat_pred = model(x_num, x_cat_oh, t)
70
+ assert x_num_pred.shape == (d["batch_size"], d["d_numerical"])
71
+ assert torch.isfinite(x_num_pred).all()
72
+ assert torch.isfinite(x_cat_pred).all()
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/tests/test_utils.py ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import numpy as np
3
+
4
+ from utils_train import update_ema, concat_y_to_X
5
+
6
+
7
+ # ---- update_ema tests ----
8
+
9
+ def test_update_ema_basic():
10
+ target = [torch.tensor([1.0, 2.0])]
11
+ source = [torch.tensor([3.0, 4.0])]
12
+ target[0].requires_grad_(False)
13
+ rate = 0.9
14
+ update_ema(target, source, rate=rate)
15
+ expected = 0.9 * torch.tensor([1.0, 2.0]) + 0.1 * torch.tensor([3.0, 4.0])
16
+ assert torch.allclose(target[0], expected)
17
+
18
+
19
+ def test_update_ema_rate_zero():
20
+ target = [torch.tensor([1.0, 2.0])]
21
+ source = [torch.tensor([3.0, 4.0])]
22
+ target[0].requires_grad_(False)
23
+ update_ema(target, source, rate=0.0)
24
+ assert torch.allclose(target[0], torch.tensor([3.0, 4.0]))
25
+
26
+
27
+ def test_update_ema_rate_one():
28
+ target = [torch.tensor([1.0, 2.0])]
29
+ source = [torch.tensor([3.0, 4.0])]
30
+ target[0].requires_grad_(False)
31
+ update_ema(target, source, rate=1.0)
32
+ assert torch.allclose(target[0], torch.tensor([1.0, 2.0]))
33
+
34
+
35
+ # ---- concat_y_to_X tests ----
36
+
37
+ def test_concat_y_to_X_with_X():
38
+ X = np.array([[1, 2], [3, 4]])
39
+ y = np.array([10, 20])
40
+ result = concat_y_to_X(X, y)
41
+ expected = np.array([[10, 1, 2], [20, 3, 4]])
42
+ np.testing.assert_array_equal(result, expected)
43
+
44
+
45
+ def test_concat_y_to_X_without_X():
46
+ y = np.array([10, 20, 30])
47
+ result = concat_y_to_X(None, y)
48
+ expected = np.array([[10], [20], [30]])
49
+ np.testing.assert_array_equal(result, expected)
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/utils_train.py ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+ import os
3
+ from pathlib import Path
4
+
5
+ import src
6
+ from torch.utils.data import Dataset
7
+
8
+ import torch
9
+
10
+
11
+ class TabularDataset(Dataset):
12
+ def __init__(self, X_num, X_cat):
13
+ self.X_num = X_num
14
+ self.X_cat = X_cat
15
+
16
+ def __getitem__(self, index):
17
+ this_num = self.X_num[index]
18
+ this_cat = self.X_cat[index]
19
+
20
+ sample = (this_num, this_cat)
21
+
22
+ return sample
23
+
24
+ def __len__(self):
25
+ return self.X_num.shape[0]
26
+
27
+
28
+ class EFVFMDataset(Dataset):
29
+ def __init__(self, dataname, data_dir, info, isTrain=True, dequant_dist='none', int_dequant_factor=0.0):
30
+ self.dataname = dataname
31
+ self.data_dir = data_dir
32
+ self.info = info
33
+ self.isTrain = isTrain
34
+
35
+ X_num, X_cat, categories, d_numerical, num_inverse, int_inverse, cat_inverse = preprocess(
36
+ data_dir, dequant_dist, int_dequant_factor, task_type=info['task_type'], inverse=True
37
+ )
38
+ categories = np.array(categories)
39
+
40
+ X_train_num, X_test_num = X_num
41
+ X_train_cat, X_test_cat = X_cat
42
+
43
+ X_train_num = torch.tensor(X_train_num).float()
44
+ X_test_num = torch.tensor(X_test_num).float()
45
+ X_train_cat = torch.tensor(X_train_cat)
46
+ X_test_cat = torch.tensor(X_test_cat)
47
+
48
+ self.X = (
49
+ torch.cat((X_train_num, X_train_cat), dim=1)
50
+ if isTrain
51
+ else torch.cat((X_test_num, X_test_cat), dim=1)
52
+ )
53
+ self.num_inverse = num_inverse
54
+ self.int_inverse = int_inverse
55
+ self.cat_inverse = cat_inverse
56
+ self.d_numerical = d_numerical
57
+ self.categories = categories
58
+
59
+ def __getitem__(self, index):
60
+ return self.X[index]
61
+
62
+ def __len__(self):
63
+ return self.X.shape[0]
64
+
65
+
66
+ def _empty_num_like(y_split):
67
+ return np.zeros((len(y_split), 0), dtype=np.float32)
68
+
69
+
70
+ def _empty_cat_like(y_split):
71
+ return np.zeros((len(y_split), 0), dtype=np.int64)
72
+
73
+
74
+ def preprocess(dataset_path, dequant_dist='none', int_dequant_factor=0.0, task_type='binclass', inverse=False, cat_encoding=None, concat=True):
75
+
76
+ T_dict = {}
77
+
78
+ T_dict['normalization'] = "quantile"
79
+ T_dict['num_nan_policy'] = 'mean'
80
+ T_dict['cat_nan_policy'] = None
81
+ T_dict['cat_min_frequency'] = None
82
+ T_dict['cat_encoding'] = cat_encoding
83
+ T_dict['y_policy'] = "default"
84
+ T_dict['dequant_dist'] = dequant_dist
85
+ T_dict['int_dequant_factor'] = int_dequant_factor
86
+
87
+ T = src.Transformations(**T_dict)
88
+
89
+ dataset = make_dataset(
90
+ data_path=dataset_path,
91
+ T=T,
92
+ task_type=task_type,
93
+ change_val=False,
94
+ concat=concat,
95
+ )
96
+
97
+ if cat_encoding is None:
98
+ X_num = dataset.X_num
99
+ X_cat = dataset.X_cat
100
+ y = dataset.y
101
+
102
+ if X_num is None:
103
+ X_train_num = _empty_num_like(y['train'])
104
+ X_test_num = _empty_num_like(y['test'])
105
+ else:
106
+ X_train_num, X_test_num = X_num['train'], X_num['test']
107
+
108
+ if X_cat is None:
109
+ # Some datasets have no categorical features after preprocessing.
110
+ # For classification tasks, ef-vfm still expects the target to be
111
+ # concatenated into the categorical block.
112
+ if task_type in ('binclass', 'multiclass') and concat and y is not None:
113
+ X_train_cat = y['train'].reshape(-1, 1)
114
+ X_test_cat = y['test'].reshape(-1, 1)
115
+ else:
116
+ X_train_cat = _empty_cat_like(y['train'])
117
+ X_test_cat = _empty_cat_like(y['test'])
118
+ else:
119
+ X_train_cat, X_test_cat = X_cat['train'], X_cat['test']
120
+
121
+ categories = src.get_categories(X_train_cat) if X_train_cat.shape[1] > 0 else []
122
+ d_numerical = X_train_num.shape[1]
123
+
124
+ X_num = (X_train_num, X_test_num)
125
+ X_cat = (X_train_cat, X_test_cat)
126
+
127
+ if inverse:
128
+ num_inverse = dataset.num_transform.inverse_transform if dataset.num_transform is not None else lambda x: x
129
+ int_inverse = dataset.int_transform.inverse_transform if dataset.int_transform is not None else lambda x: x
130
+ cat_inverse = dataset.cat_transform.inverse_transform if dataset.cat_transform is not None else lambda x: x
131
+
132
+ return X_num, X_cat, categories, d_numerical, num_inverse, int_inverse, cat_inverse
133
+ else:
134
+ return X_num, X_cat, categories, d_numerical
135
+ else:
136
+ return dataset
137
+
138
+
139
+ def update_ema(target_params, source_params, rate=0.999):
140
+ for target, source in zip(target_params, source_params):
141
+ target.detach().mul_(rate).add_(source.detach(), alpha=1 - rate)
142
+
143
+
144
+ def concat_y_to_X(X, y):
145
+ if X is None:
146
+ return y.reshape(-1, 1)
147
+ return np.concatenate([y.reshape(-1, 1), X], axis=1)
148
+
149
+
150
+ def make_dataset(
151
+ data_path: str,
152
+ T: src.Transformations,
153
+ task_type,
154
+ change_val: bool,
155
+ concat=True,
156
+ ):
157
+
158
+ if task_type == 'binclass' or task_type == 'multiclass':
159
+ X_cat = {} if os.path.exists(os.path.join(data_path, 'X_cat_train.npy')) else None
160
+ X_num = {} if os.path.exists(os.path.join(data_path, 'X_num_train.npy')) else None
161
+ y = {} if os.path.exists(os.path.join(data_path, 'y_train.npy')) else None
162
+
163
+ for split in ['train', 'test']:
164
+ X_num_t, X_cat_t, y_t = src.read_pure_data(data_path, split)
165
+ if X_num is not None:
166
+ X_num[split] = X_num_t
167
+ if X_cat is not None:
168
+ if concat:
169
+ X_cat_t = concat_y_to_X(X_cat_t, y_t)
170
+ X_cat[split] = X_cat_t
171
+ if y is not None:
172
+ y[split] = y_t
173
+ else:
174
+ X_cat = {} if os.path.exists(os.path.join(data_path, 'X_cat_train.npy')) else None
175
+ X_num = {} if os.path.exists(os.path.join(data_path, 'X_num_train.npy')) else None
176
+ y = {} if os.path.exists(os.path.join(data_path, 'y_train.npy')) else None
177
+
178
+ for split in ['train', 'test']:
179
+ X_num_t, X_cat_t, y_t = src.read_pure_data(data_path, split)
180
+ if X_num is not None:
181
+ if concat:
182
+ X_num_t = concat_y_to_X(X_num_t, y_t)
183
+ X_num[split] = X_num_t
184
+ if X_cat is not None:
185
+ X_cat[split] = X_cat_t
186
+ if y is not None:
187
+ y[split] = y_t
188
+
189
+ info = src.load_json(os.path.join(data_path, 'info.json'))
190
+ int_col_idx_wrt_num = info['int_col_idx_wrt_num']
191
+
192
+ D = src.Dataset(
193
+ X_num,
194
+ X_cat,
195
+ y,
196
+ int_col_idx_wrt_num,
197
+ y_info={},
198
+ task_type=src.TaskType(info['task_type']),
199
+ n_classes=info.get('n_classes')
200
+ )
201
+
202
+ if change_val:
203
+ D = src.change_val(D)
204
+ D = src.transform_dataset(D, T, cache_dir=Path(data_path))
205
+ return D
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_tabbyflow_gen.py ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import os, shutil, subprocess, sys
3
+ root = r"/workspace/ef-vfm"
4
+ rt = r"/work/output-Benchmark-trainonly-v1/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime"
5
+ name = r"pipeline_n16"
6
+ src = r"/work/output-Benchmark-trainonly-v1/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16"
7
+
8
+ if not os.path.exists(rt):
9
+ def _ignore(_, names):
10
+ skip = {"__pycache__", "data", "synthetic", "result", "results", "ckpt"}
11
+ return [n for n in names if n in skip or n.endswith(".pyc")]
12
+ shutil.copytree(root, rt, ignore=_ignore)
13
+
14
+ dst_data = os.path.join(rt, "data", name)
15
+ shutil.rmtree(dst_data, ignore_errors=True)
16
+ os.makedirs(os.path.dirname(dst_data), exist_ok=True)
17
+ shutil.copytree(src, dst_data)
18
+ dst_syn = os.path.join(rt, "synthetic", name)
19
+ os.makedirs(dst_syn, exist_ok=True)
20
+ for fn in ("real.csv", "test.csv", "val.csv"):
21
+ shutil.copy(os.path.join(src, fn), os.path.join(dst_syn, fn))
22
+ os.chdir(rt)
23
+ os.environ["PYTHONPATH"] = rt + os.pathsep + os.environ.get("PYTHONPATH", "")
24
+ os.environ.setdefault("EFVFM_SAMPLE_BATCH_SIZE", "64")
25
+ os.environ.setdefault("EFVFM_ODE_FALLBACK", "1")
26
+ os.environ.setdefault("EFVFM_RK4_STEPS", "32")
27
+ subprocess.check_call([
28
+ sys.executable, os.path.join(rt, "main.py"),
29
+ "--dataname", name, "--mode", "test", "--gpu", "0",
30
+ "--no_wandb", "--exp_name", r"adapter_efvfm",
31
+ "--ckpt_path", r"/work/output-Benchmark-trainonly-v1/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime/ckpt/pipeline_n16/adapter_efvfm/model_90.pt",
32
+ "--num_samples_to_generate", str(int(227845)),
33
+ ])
34
+ search_roots = [
35
+ os.path.join(rt, "result", name, r"adapter_efvfm"),
36
+ os.path.join(rt, "ef_vfm", "result", name, r"adapter_efvfm"),
37
+ ]
38
+ best = None
39
+ best_t = -1.0
40
+ for base in search_roots:
41
+ if not os.path.isdir(base):
42
+ continue
43
+ for r, _, files in os.walk(base):
44
+ if "samples.csv" in files:
45
+ p = os.path.join(r, "samples.csv")
46
+ t = os.path.getmtime(p)
47
+ if t > best_t:
48
+ best_t, best = t, p
49
+ if not best:
50
+ raise SystemExit("tabbyflow: no samples.csv in " + " | ".join(search_roots))
51
+ shutil.copy(best, r"/work/output-Benchmark-trainonly-v1/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabbyflow-n16-227845-20260513_134510.csv")
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/_tabbyflow_train.py ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import os, shutil, subprocess, sys
3
+ root = r"/workspace/ef-vfm"
4
+ rt = r"/work/output-Benchmark-trainonly-v1/n16/tabbyflow/tabbyflow-n16-20260513_131635/_efvfm_runtime"
5
+ name = r"pipeline_n16"
6
+ src = r"/work/output-Benchmark-trainonly-v1/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16"
7
+
8
+ shutil.rmtree(rt, ignore_errors=True)
9
+
10
+ def _ignore(_, names):
11
+ skip = {"__pycache__", "data", "synthetic", "result", "results", "ckpt"}
12
+ return [n for n in names if n in skip or n.endswith(".pyc")]
13
+
14
+ shutil.copytree(root, rt, ignore=_ignore)
15
+ pkg_cfg = os.path.join(rt, "ef_vfm", "configs")
16
+ root_cfg = os.path.join(rt, "configs")
17
+ if not os.path.isdir(root_cfg) and os.path.isdir(pkg_cfg):
18
+ shutil.copytree(pkg_cfg, root_cfg)
19
+ dst_data = os.path.join(rt, "data", name)
20
+ dst_syn = os.path.join(rt, "synthetic", name)
21
+ shutil.rmtree(dst_data, ignore_errors=True)
22
+ os.makedirs(os.path.dirname(dst_data), exist_ok=True)
23
+ shutil.copytree(src, dst_data)
24
+ os.makedirs(dst_syn, exist_ok=True)
25
+ for fn in ("real.csv", "test.csv", "val.csv"):
26
+ shutil.copy(os.path.join(src, fn), os.path.join(dst_syn, fn))
27
+ os.chdir(rt)
28
+ os.environ["PYTHONPATH"] = rt + os.pathsep + os.environ.get("PYTHONPATH", "")
29
+ os.environ["EFVFM_SMOKE_STEPS"] = "100"
30
+ os.environ["EFVFM_ADAPTER_TRAIN"] = "1"
31
+ os.environ.setdefault("EFVFM_TRAIN_BATCH_SIZE", "64")
32
+ os.environ.setdefault("EFVFM_SAMPLE_BATCH_SIZE", "64")
33
+ os.environ.setdefault("EFVFM_EVAL_NUM_SAMPLES", "512")
34
+ os.environ.setdefault("EFVFM_ODE_FALLBACK", "1")
35
+ os.environ.setdefault("EFVFM_RK4_STEPS", "32")
36
+ subprocess.check_call([
37
+ sys.executable, os.path.join(rt, "main.py"),
38
+ "--dataname", name, "--mode", "train", "--gpu", "0",
39
+ "--no_wandb", "--exp_name", r"adapter_efvfm",
40
+ ])
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/gen_20260513_134510.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5d4d9c0a7078479e707c6fe053e98b87988e02a212fc6ec051ea5c681907c18
3
+ size 119152
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/input_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17cc1ecbae953a319c94a177dada630eed5c295e9c149751ff9ae91971961a4e
3
+ size 1370
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/models_tabbyflow/trained.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:adb734fec12f2251befd371dca69e481b19464aded2a6823105a01b4be6ddbe5
3
+ size 40
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/public_gate/normalized_schema_snapshot.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8e13e1c6e622699e221296c60f78826768eb2924cb4fed7c34a19ef5f2b80a4
3
+ size 16264
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/public_gate/public_gate_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea494477cf967f69e54af6c8693533ac8881a2a84c785ee01246213ed0bd2dde
3
+ size 919
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/public_gate/staged_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47687546bfbc7d23132b5579f54b24a12cda2925a5a3599965e1934c18cf470e
3
+ size 17100
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/run_config.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97003a4b29676a8602b5b5f007e1a6594b342f3fadd6c684967d7be3ee371770
3
+ size 2199
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/runtime_result.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eeccc2e3a5d2300810d83f47babeb9a479eb64071019f32e5b5ba4256d7330ff
3
+ size 936
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/public/staged_features.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fed791ef5182375f73ad93592b97cc6ac631c25c28e2e31e2c97e78c3a29855b
3
+ size 2784
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/public/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d69f73fdce5c2172678b0625c43058e7b6c8a991cee8c51c62b4e8f9200ddda9
3
+ size 15025273
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/public/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9803535990b2822a664c439816ab91c39aeedc38f99ade09a4347fe013876a3
3
+ size 120653578
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/public/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3abf3e2b22202b610a02bb43c40fc2751b5ff791d7c12fbc78ec217fdd5bebb2
3
+ size 15025064
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/tabbyflow/adapter_report.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d97a3d84c9e226efac6c8be41d5d307f00ff7fd8cbf4d0d86b8ead7a67ea20a
3
+ size 329
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/tabbyflow/adapter_transforms_applied.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945
3
+ size 2
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/staged/tabbyflow/model_input_manifest.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f904c74291b72b1536367773152cb2b94ad5443dcc9632e4763e2f71293f8cdf
3
+ size 17305
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabbyflow-n16-227845-20260513_134510.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de2b761724b561f959e01aabcc40372fa6e4d059711d96ea485fa903d1fccd0d
3
+ size 75469976
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabbyflow_train_meta.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68cd417c0600c91c7a356ca5178122de0a2e27272eeb371a99f9a3ad92c33654
3
+ size 414
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/X_num_test.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f612f9120f3c6c0b1a9bcf3ea292af3d279674a92e0022faff9a6ae8260ae16e
3
+ size 3417968
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/X_num_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca0368f23f7b1f2e91278788c5e5586d242dd4c63ecdea703f11014da63c1771
3
+ size 27341528
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/X_num_val.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26e7f4c1afa2f9e2db45009d21e961511bce579b9215379827b57a54171c986c
3
+ size 3417728
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/info.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd24f6c9bf68c4f74910690803d3750434847954576c6b27ae1989d4c2d08f3c
3
+ size 5350
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/real.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9803535990b2822a664c439816ab91c39aeedc38f99ade09a4347fe013876a3
3
+ size 120653578
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/staged_features.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fed791ef5182375f73ad93592b97cc6ac631c25c28e2e31e2c97e78c3a29855b
3
+ size 2784
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/test.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d69f73fdce5c2172678b0625c43058e7b6c8a991cee8c51c62b4e8f9200ddda9
3
+ size 15025273
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/train.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9803535990b2822a664c439816ab91c39aeedc38f99ade09a4347fe013876a3
3
+ size 120653578
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/val.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3abf3e2b22202b610a02bb43c40fc2751b5ff791d7c12fbc78ec217fdd5bebb2
3
+ size 15025064
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/y_test.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e68a11c97bcc5ff28be86a44450abb4663c29c718f1359d168c0b37036e78b78
3
+ size 227984
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/y_train.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5320385ca99e9d5210ae94d6b3338d824757df7cb44c55282bf93277d9d3249
3
+ size 1822888
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/tabular_bundle/pipeline_n16/y_val.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:149a45178d1a5b41d0cc4d0bef92144dcc25e12f312e6e15b753be2dcbce5c23
3
+ size 227968
SynthData0523/main/n16/tabbyflow/tabbyflow-n16-20260513_131635/train_20260513_131701.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:326c3899793d4384a04806250c92acce68b66c729ee6a8bb6430f082a727ed9d
3
+ size 4903124
SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/_tabddpm_sample.py ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os, sys, subprocess, json
2
+ import numpy as np
3
+ import pandas as pd
4
+
5
+ tabddpm_root = "/workspace/tabddpm/code"
6
+ assert os.path.isdir(tabddpm_root), f"TabDDPM source not mounted: {tabddpm_root}"
7
+ env = os.environ.copy()
8
+ env["PYTHONPATH"] = tabddpm_root + (os.pathsep + env.get("PYTHONPATH", ""))
9
+
10
+ # Reuse the compat wrapper (patches collections.Sequence for skorch)
11
+ wrapper = os.path.join(tabddpm_root, "_compat_run.py")
12
+ if not os.path.exists(wrapper):
13
+ with open(wrapper, "w") as f:
14
+ f.write(
15
+ "import collections, collections.abc\n"
16
+ "for _a in ('Sequence','MutableSequence','MutableMapping','Mapping',"
17
+ "'MutableSet','Set','Callable','Iterable','Iterator'):\n"
18
+ " if not hasattr(collections, _a): setattr(collections, _a, getattr(collections.abc, _a, None))\n"
19
+ "import sys, runpy\n"
20
+ "sys.argv = sys.argv[1:]\n"
21
+ "runpy.run_path(sys.argv[0], run_name='__main__')\n"
22
+ )
23
+
24
+ print(f"[TabDDPM] Sampling 227845 rows")
25
+ ret = subprocess.run(
26
+ [sys.executable, wrapper, "scripts/pipeline.py",
27
+ "--config", "/work/output-SpecializedModels/n16/tabddpm/tabddpm-n16-20260321_163935/config_sample_20260425_080506.toml",
28
+ "--sample"],
29
+ cwd=tabddpm_root,
30
+ env=env
31
+ )
32
+ if ret.returncode != 0:
33
+ sys.exit(ret.returncode)
34
+
35
+ # 将 .npy 输出转为 CSV(npy 在 TabDDPM 的 parent_dir,即 npy_dir)
36
+ info_path = "/work/output-SpecializedModels/n16/tabddpm/tabddpm-n16-20260321_163935/data/info.json"
37
+ with open(info_path) as f:
38
+ info = json.load(f)
39
+
40
+ output_dir = "/work/output-SpecializedModels/n16/tabddpm/tabddpm-n16-20260321_163935/output"
41
+ col_names = info.get("column_names", [])
42
+
43
+ parts = []
44
+ x_num_path = os.path.join(output_dir, "X_num_train.npy")
45
+ x_cat_path = os.path.join(output_dir, "X_cat_train.npy")
46
+ y_path = os.path.join(output_dir, "y_train.npy")
47
+
48
+ if os.path.exists(x_num_path):
49
+ parts.append(np.load(x_num_path, allow_pickle=True))
50
+ if os.path.exists(x_cat_path):
51
+ parts.append(np.load(x_cat_path, allow_pickle=True).astype(float))
52
+ if os.path.exists(y_path):
53
+ y = np.load(y_path, allow_pickle=True)
54
+ parts.append(y.reshape(-1, 1) if y.ndim == 1 else y)
55
+
56
+ if parts:
57
+ combined = np.concatenate(parts, axis=1)
58
+ if col_names and len(col_names) == combined.shape[1]:
59
+ df = pd.DataFrame(combined, columns=col_names)
60
+ else:
61
+ df = pd.DataFrame(combined)
62
+ df.to_csv("/work/output-SpecializedModels/n16/tabddpm/tabddpm-n16-20260321_163935/tabddpm-n16-227845-20260425_080506.csv", index=False)
63
+ print(f"[TabDDPM] Saved {len(df)} rows -> /work/output-SpecializedModels/n16/tabddpm/tabddpm-n16-20260321_163935/tabddpm-n16-227845-20260425_080506.csv")
64
+ else:
65
+ print("[TabDDPM] WARNING: No output .npy files found")
66
+ sys.exit(1)
SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/_tabddpm_train.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os, sys, subprocess
2
+
3
+ tabddpm_root = "/workspace/tabddpm/code"
4
+ assert os.path.isdir(tabddpm_root), f"TabDDPM source not mounted: {tabddpm_root}"
5
+ env = os.environ.copy()
6
+ env["PYTHONPATH"] = tabddpm_root + (os.pathsep + env.get("PYTHONPATH", ""))
7
+
8
+ # Write a wrapper that patches collections.Sequence (removed in Python 3.10+)
9
+ # before running pipeline.py - needed because skorch uses old API
10
+ wrapper = os.path.join(tabddpm_root, "_compat_run.py")
11
+ with open(wrapper, "w") as f:
12
+ f.write(
13
+ "import collections, collections.abc\n"
14
+ "for _a in ('Sequence','MutableSequence','MutableMapping','Mapping',"
15
+ "'MutableSet','Set','Callable','Iterable','Iterator'):\n"
16
+ " if not hasattr(collections, _a): setattr(collections, _a, getattr(collections.abc, _a, None))\n"
17
+ "import sys, runpy\n"
18
+ "sys.argv = sys.argv[1:]\n"
19
+ "runpy.run_path(sys.argv[0], run_name='__main__')\n"
20
+ )
21
+
22
+ print(f"[TabDDPM] Training, config=/work/output-SpecializedModels/n16/tabddpm/tabddpm-n16-20260321_163935/config.toml")
23
+ ret = subprocess.run(
24
+ [sys.executable, wrapper, "scripts/pipeline.py",
25
+ "--config", "/work/output-SpecializedModels/n16/tabddpm/tabddpm-n16-20260321_163935/config.toml",
26
+ "--train"],
27
+ cwd=tabddpm_root,
28
+ env=env
29
+ )
30
+ if ret.returncode != 0:
31
+ sys.exit(ret.returncode)
32
+ print("[TabDDPM] Training complete")
SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/config.toml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ seed = 0
2
+ parent_dir = "/work/output-SpecializedModels/n16/tabddpm/tabddpm-n16-20260321_163935/output"
3
+ real_data_path = "/work/output-SpecializedModels/n16/tabddpm/tabddpm-n16-20260321_163935/data"
4
+ model_type = "mlp"
5
+ num_numerical_features = 30
6
+ device = "cuda:0"
7
+
8
+ [model_params]
9
+ d_in = 30
10
+ num_classes = 2
11
+ is_y_cond = true
12
+
13
+ [model_params.rtdl_params]
14
+ d_layers = [256, 256]
15
+ dropout = 0.0
16
+
17
+ [diffusion_params]
18
+ num_timesteps = 1000
19
+ gaussian_loss_type = "mse"
20
+
21
+ [train.main]
22
+ steps = 5000
23
+ lr = 0.001
24
+ weight_decay = 0.0
25
+ batch_size = 256
26
+
27
+ [train.T]
28
+ seed = 0
29
+ normalization = "quantile"
30
+ num_nan_policy = "__none__"
31
+ cat_nan_policy = "__none__"
32
+ cat_min_frequency = "__none__"
33
+ cat_encoding = "__none__"
34
+ y_policy = "default"
35
+
36
+ [sample]
37
+ num_samples = 1000
38
+ batch_size = 1000
39
+ seed = 0
SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/config_sample_20260424_212203.toml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ seed = 0
2
+ parent_dir = "/work/output-SpecializedModels/n16/tabddpm/tabddpm-n16-20260321_163935/output"
3
+ real_data_path = "/work/output-SpecializedModels/n16/tabddpm/tabddpm-n16-20260321_163935/data"
4
+ model_type = "mlp"
5
+ num_numerical_features = 30
6
+ device = "cuda:0"
7
+
8
+ [model_params]
9
+ d_in = 30
10
+ num_classes = 2
11
+ is_y_cond = true
12
+
13
+ [model_params.rtdl_params]
14
+ d_layers = [256, 256]
15
+ dropout = 0.0
16
+
17
+ [diffusion_params]
18
+ num_timesteps = 1000
19
+ gaussian_loss_type = "mse"
20
+
21
+ [train.main]
22
+ steps = 5000
23
+ lr = 0.001
24
+ weight_decay = 0.0
25
+ batch_size = 256
26
+
27
+ [train.T]
28
+ seed = 0
29
+ normalization = "quantile"
30
+ num_nan_policy = "__none__"
31
+ cat_nan_policy = "__none__"
32
+ cat_min_frequency = "__none__"
33
+ cat_encoding = "__none__"
34
+ y_policy = "default"
35
+
36
+ [sample]
37
+ num_samples = 227845
38
+ batch_size = 1000
39
+ seed = 0
SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/config_sample_20260425_033728.toml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ seed = 0
2
+ parent_dir = "/work/output-SpecializedModels/n16/tabddpm/tabddpm-n16-20260321_163935/output"
3
+ real_data_path = "/work/output-SpecializedModels/n16/tabddpm/tabddpm-n16-20260321_163935/data"
4
+ model_type = "mlp"
5
+ num_numerical_features = 30
6
+ device = "cuda:0"
7
+
8
+ [model_params]
9
+ d_in = 30
10
+ num_classes = 2
11
+ is_y_cond = true
12
+
13
+ [model_params.rtdl_params]
14
+ d_layers = [256, 256]
15
+ dropout = 0.0
16
+
17
+ [diffusion_params]
18
+ num_timesteps = 1000
19
+ gaussian_loss_type = "mse"
20
+
21
+ [train.main]
22
+ steps = 5000
23
+ lr = 0.001
24
+ weight_decay = 0.0
25
+ batch_size = 256
26
+
27
+ [train.T]
28
+ seed = 0
29
+ normalization = "quantile"
30
+ num_nan_policy = "__none__"
31
+ cat_nan_policy = "__none__"
32
+ cat_min_frequency = "__none__"
33
+ cat_encoding = "__none__"
34
+ y_policy = "default"
35
+
36
+ [sample]
37
+ num_samples = 227845
38
+ batch_size = 1000
39
+ seed = 0
SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/config_sample_20260425_080506.toml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ seed = 0
2
+ parent_dir = "/work/output-SpecializedModels/n16/tabddpm/tabddpm-n16-20260321_163935/output"
3
+ real_data_path = "/work/output-SpecializedModels/n16/tabddpm/tabddpm-n16-20260321_163935/data"
4
+ model_type = "mlp"
5
+ num_numerical_features = 30
6
+ device = "cuda:0"
7
+
8
+ [model_params]
9
+ d_in = 30
10
+ num_classes = 2
11
+ is_y_cond = true
12
+
13
+ [model_params.rtdl_params]
14
+ d_layers = [256, 256]
15
+ dropout = 0.0
16
+
17
+ [diffusion_params]
18
+ num_timesteps = 1000
19
+ gaussian_loss_type = "mse"
20
+
21
+ [train.main]
22
+ steps = 5000
23
+ lr = 0.001
24
+ weight_decay = 0.0
25
+ batch_size = 256
26
+
27
+ [train.T]
28
+ seed = 0
29
+ normalization = "quantile"
30
+ num_nan_policy = "__none__"
31
+ cat_nan_policy = "__none__"
32
+ cat_min_frequency = "__none__"
33
+ cat_encoding = "__none__"
34
+ y_policy = "default"
35
+
36
+ [sample]
37
+ num_samples = 227845
38
+ batch_size = 1000
39
+ seed = 0
SynthData0523/main/n16/tabddpm/tabddpm-n16-20260321_163935/data/X_num_test.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2188431173531bc74c4341d6379a476cc310bbb40c19080dcdd4e9c3d509804a
3
+ size 3417968