archc 0.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. archc-0.0.0/LICENSE +15 -0
  2. archc-0.0.0/PKG-INFO +1034 -0
  3. archc-0.0.0/README.md +1008 -0
  4. archc-0.0.0/ac/__init__.py +0 -0
  5. archc-0.0.0/ac/ablation_fit.py +291 -0
  6. archc-0.0.0/ac/architecture.py +1134 -0
  7. archc-0.0.0/ac/auto_calibrate.py +2235 -0
  8. archc-0.0.0/ac/baseline.py +672 -0
  9. archc-0.0.0/ac/baseline_delta.py +492 -0
  10. archc-0.0.0/ac/budget_pareto.py +933 -0
  11. archc-0.0.0/ac/calibration/b200_calibration.json +179 -0
  12. archc-0.0.0/ac/calibration/family_bias_v1.json +125 -0
  13. archc-0.0.0/ac/calibration/h100_calibration.json +155 -0
  14. archc-0.0.0/ac/calibration/tpu_v5p_calibration.json +153 -0
  15. archc-0.0.0/ac/cli_compile.py +2479 -0
  16. archc-0.0.0/ac/cli_delta_eval.py +802 -0
  17. archc-0.0.0/ac/cli_matrix18b.py +358 -0
  18. archc-0.0.0/ac/cli_recipe.py +662 -0
  19. archc-0.0.0/ac/cli_stress.py +784 -0
  20. archc-0.0.0/ac/cli_trust_audit.py +248 -0
  21. archc-0.0.0/ac/decision.py +801 -0
  22. archc-0.0.0/ac/delta_engine.py +361 -0
  23. archc-0.0.0/ac/deltas/__init__.py +56 -0
  24. archc-0.0.0/ac/deltas/add_state_layers.py +155 -0
  25. archc-0.0.0/ac/deltas/base.py +257 -0
  26. archc-0.0.0/ac/deltas/change_moe_topology.py +44 -0
  27. archc-0.0.0/ac/deltas/change_parallelism.py +52 -0
  28. archc-0.0.0/ac/deltas/change_precision_per_component.py +48 -0
  29. archc-0.0.0/ac/deltas/densify_first_k.py +28 -0
  30. archc-0.0.0/ac/deltas/interleave_local_attention.py +99 -0
  31. archc-0.0.0/ac/deltas/scale_d_model.py +71 -0
  32. archc-0.0.0/ac/deltas/scale_n_layers.py +64 -0
  33. archc-0.0.0/ac/deltas/swap_attention_to_gqa.py +69 -0
  34. archc-0.0.0/ac/deltas/swap_attention_to_mla.py +98 -0
  35. archc-0.0.0/ac/deltas/swap_attention_to_swa.py +68 -0
  36. archc-0.0.0/ac/evaluator.py +1501 -0
  37. archc-0.0.0/ac/hardware_specs/b200.json +81 -0
  38. archc-0.0.0/ac/hardware_specs/gb200_nvl72.json +95 -0
  39. archc-0.0.0/ac/hardware_specs/h100_sxm.json +72 -0
  40. archc-0.0.0/ac/hardware_specs/h800.json +74 -0
  41. archc-0.0.0/ac/hardware_specs/tpu_v5e.json +52 -0
  42. archc-0.0.0/ac/hardware_specs/tpu_v5p.json +61 -0
  43. archc-0.0.0/ac/hardware_specs/trainium2.json +67 -0
  44. archc-0.0.0/ac/hardware_specs/trainium3.json +82 -0
  45. archc-0.0.0/ac/implementation_generator.py +475 -0
  46. archc-0.0.0/ac/justification.py +775 -0
  47. archc-0.0.0/ac/justify_transition.py +220 -0
  48. archc-0.0.0/ac/ladder_plan.py +474 -0
  49. archc-0.0.0/ac/lattice_engine.py +1323 -0
  50. archc-0.0.0/ac/modifier.py +830 -0
  51. archc-0.0.0/ac/operational_flags.py +344 -0
  52. archc-0.0.0/ac/optimizer.py +6549 -0
  53. archc-0.0.0/ac/optimizer_bridge.py +234 -0
  54. archc-0.0.0/ac/packaged_configs/gpt_oss_120b.json +159 -0
  55. archc-0.0.0/ac/packaged_configs/mai_thinking_1.json +178 -0
  56. archc-0.0.0/ac/packaged_configs/mistral_7b.json +64 -0
  57. archc-0.0.0/ac/pareto_position.py +388 -0
  58. archc-0.0.0/ac/penalties.py +539 -0
  59. archc-0.0.0/ac/pricing.py +452 -0
  60. archc-0.0.0/ac/pricing_specs/b200.json +73 -0
  61. archc-0.0.0/ac/pricing_specs/h100.json +72 -0
  62. archc-0.0.0/ac/pricing_specs/tpu_v5e.json +70 -0
  63. archc-0.0.0/ac/pricing_specs/tpu_v5p.json +70 -0
  64. archc-0.0.0/ac/pricing_specs/trainium2.json +74 -0
  65. archc-0.0.0/ac/pricing_specs/trainium3.json +62 -0
  66. archc-0.0.0/ac/quality_defaults.yaml +262 -0
  67. archc-0.0.0/ac/quality_model.py +3973 -0
  68. archc-0.0.0/ac/quality_stress.py +244 -0
  69. archc-0.0.0/ac/rank.py +156 -0
  70. archc-0.0.0/ac/report.py +1067 -0
  71. archc-0.0.0/ac/schema.py +1622 -0
  72. archc-0.0.0/ac/serving_workload.py +351 -0
  73. archc-0.0.0/ac/shadow_prices.py +561 -0
  74. archc-0.0.0/ac/sram_derivation.py +295 -0
  75. archc-0.0.0/ac/stress.py +1112 -0
  76. archc-0.0.0/ac/throughput_model.py +3793 -0
  77. archc-0.0.0/ac/transition.py +159 -0
  78. archc-0.0.0/ac/trust_audit.py +934 -0
  79. archc-0.0.0/archc.egg-info/PKG-INFO +1034 -0
  80. archc-0.0.0/archc.egg-info/SOURCES.txt +131 -0
  81. archc-0.0.0/archc.egg-info/dependency_links.txt +1 -0
  82. archc-0.0.0/archc.egg-info/entry_points.txt +7 -0
  83. archc-0.0.0/archc.egg-info/requires.txt +4 -0
  84. archc-0.0.0/archc.egg-info/top_level.txt +1 -0
  85. archc-0.0.0/pyproject.toml +55 -0
  86. archc-0.0.0/setup.cfg +4 -0
  87. archc-0.0.0/tests/test_anchor_registry_ledger.py +73 -0
  88. archc-0.0.0/tests/test_architecture_signature.py +311 -0
  89. archc-0.0.0/tests/test_architecture_wiring.py +275 -0
  90. archc-0.0.0/tests/test_budget_pareto.py +507 -0
  91. archc-0.0.0/tests/test_cell_output_schema.py +169 -0
  92. archc-0.0.0/tests/test_cli_smoke.py +1755 -0
  93. archc-0.0.0/tests/test_compressed_attention.py +234 -0
  94. archc-0.0.0/tests/test_decision_assessment.py +383 -0
  95. archc-0.0.0/tests/test_decode_allreduce_realism.py +127 -0
  96. archc-0.0.0/tests/test_delta_registry_contracts.py +127 -0
  97. archc-0.0.0/tests/test_effective_quality_model.py +211 -0
  98. archc-0.0.0/tests/test_ep72_pareto.py +140 -0
  99. archc-0.0.0/tests/test_ep_domain_routing.py +177 -0
  100. archc-0.0.0/tests/test_evaluator_units.py +423 -0
  101. archc-0.0.0/tests/test_family_view.py +218 -0
  102. archc-0.0.0/tests/test_feasibility_guards.py +132 -0
  103. archc-0.0.0/tests/test_golden_matrix.py +192 -0
  104. archc-0.0.0/tests/test_hardware_precision_model.py +119 -0
  105. archc-0.0.0/tests/test_known_arch_picked.py +250 -0
  106. archc-0.0.0/tests/test_known_arch_predictions.py +267 -0
  107. archc-0.0.0/tests/test_local_global_interleave.py +238 -0
  108. archc-0.0.0/tests/test_matrix_driver_integrity.py +69 -0
  109. archc-0.0.0/tests/test_matrix_invariants.py +367 -0
  110. archc-0.0.0/tests/test_moe_throughput_and_ep.py +304 -0
  111. archc-0.0.0/tests/test_nvl72_system_spec.py +152 -0
  112. archc-0.0.0/tests/test_operational_flags.py +334 -0
  113. archc-0.0.0/tests/test_optimize_across_contexts.py +231 -0
  114. archc-0.0.0/tests/test_optimizer_self_consistency.py +204 -0
  115. archc-0.0.0/tests/test_packaged_configs_sync.py +55 -0
  116. archc-0.0.0/tests/test_paired_decisions_and_ladders.py +189 -0
  117. archc-0.0.0/tests/test_picker_tiebreaks_and_contenders.py +335 -0
  118. archc-0.0.0/tests/test_pp_decode_serving.py +192 -0
  119. archc-0.0.0/tests/test_pp_search.py +188 -0
  120. archc-0.0.0/tests/test_pricing.py +289 -0
  121. archc-0.0.0/tests/test_public_model_anchors.py +263 -0
  122. archc-0.0.0/tests/test_quality_model_regressions.py +128 -0
  123. archc-0.0.0/tests/test_reference_config_ledger.py +71 -0
  124. archc-0.0.0/tests/test_seam_contract.py +7846 -0
  125. archc-0.0.0/tests/test_serving_workload.py +236 -0
  126. archc-0.0.0/tests/test_signature_integration.py +286 -0
  127. archc-0.0.0/tests/test_specific_bug_regressions.py +301 -0
  128. archc-0.0.0/tests/test_stress_diagnostics.py +197 -0
  129. archc-0.0.0/tests/test_training_memory_axis.py +112 -0
  130. archc-0.0.0/tests/test_trust_audit.py +158 -0
  131. archc-0.0.0/tests/test_trust_audit_anchors.py +173 -0
  132. archc-0.0.0/tests/test_ttft_prompt_honesty.py +114 -0
  133. archc-0.0.0/tests/test_two_stage_evaluation.py +179 -0
archc-0.0.0/LICENSE ADDED
@@ -0,0 +1,15 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.