tracebloc 6.0.0__tar.gz → 6.0.2__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 (214) hide show
  1. {tracebloc-6.0.0 → tracebloc-6.0.2}/PKG-INFO +1 -1
  2. {tracebloc-6.0.0 → tracebloc-6.0.2}/pyproject.toml +1 -1
  3. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/client.py +16 -17
  4. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/linking/check_model.py +3 -1
  5. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/linking/data_methods.py +13 -5
  6. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/linking/response.py +5 -0
  7. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc.egg-info/PKG-INFO +1 -1
  8. {tracebloc-6.0.0 → tracebloc-6.0.2}/MANIFEST.in +0 -0
  9. {tracebloc-6.0.0 → tracebloc-6.0.2}/README.md +0 -0
  10. {tracebloc-6.0.0 → tracebloc-6.0.2}/license.txt +0 -0
  11. {tracebloc-6.0.0 → tracebloc-6.0.2}/setup.cfg +0 -0
  12. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/__init__.py +0 -0
  13. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/api/__init__.py +0 -0
  14. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/api/experiment_status.py +0 -0
  15. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/api/responses.py +0 -0
  16. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/auth/__init__.py +0 -0
  17. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/auth/env_login.py +0 -0
  18. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/checks.py +0 -0
  19. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/compat/__init__.py +0 -0
  20. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/compat/deprecation.py +0 -0
  21. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/compat/frameworks.py +0 -0
  22. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/config.py +0 -0
  23. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/console/__init__.py +0 -0
  24. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/console/logger.py +0 -0
  25. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/contracts/stage_urls.v1.json +0 -0
  26. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/contracts/stage_urls.v1.source.json +0 -0
  27. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/contracts/survival_payload.py +0 -0
  28. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/contracts/training_requirements.source.json +0 -0
  29. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/contracts/training_requirements.txt +0 -0
  30. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/__init__.py +0 -0
  31. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/acceptance.py +0 -0
  32. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/families/__init__.py +0 -0
  33. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/families/hf/__init__.py +0 -0
  34. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/families/hf/_build.py +0 -0
  35. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/families/hf/_model_type.py +0 -0
  36. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/families/tabular.py +0 -0
  37. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/families/vision/__init__.py +0 -0
  38. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/families/vision/_matching.py +0 -0
  39. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/gate.py +0 -0
  40. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/heads.py +0 -0
  41. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/interfaces.py +0 -0
  42. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/licence/__init__.py +0 -0
  43. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/licence/spdx.py +0 -0
  44. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/outputs.py +0 -0
  45. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/owncode/__init__.py +0 -0
  46. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/owncode/arguments.py +0 -0
  47. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/owncode/assemble.py +0 -0
  48. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/owncode/checkpoint.py +0 -0
  49. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/owncode/gate_rules.py +0 -0
  50. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/owncode/generate.py +0 -0
  51. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/owncode/head.py +0 -0
  52. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/owncode/import_check.py +0 -0
  53. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/owncode/layer0.py +0 -0
  54. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/owncode/live.py +0 -0
  55. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/owncode/model_class.py +0 -0
  56. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/owncode/remote.py +0 -0
  57. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/owncode/repo.py +0 -0
  58. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/owncode/shake.py +0 -0
  59. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/owncode/source_tree.py +0 -0
  60. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/package.py +0 -0
  61. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/padding.py +0 -0
  62. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/report.py +0 -0
  63. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/tokenizers.py +0 -0
  64. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/convert/training_versions.py +0 -0
  65. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/datasets/__init__.py +0 -0
  66. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/datasets/base.py +0 -0
  67. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/datasets/detection.py +0 -0
  68. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/datasets/keypoint_detection.py +0 -0
  69. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/datasets/semantic_segmentation.py +0 -0
  70. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/datasets/tabular.py +0 -0
  71. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/datasets/text.py +0 -0
  72. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/datasets/time_series.py +0 -0
  73. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/datasets/time_to_event.py +0 -0
  74. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/downloads/lifelines_weights.py +0 -0
  75. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/downloads/seed_weights.py +0 -0
  76. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/exceptions.py +0 -0
  77. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/fetch.py +0 -0
  78. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/inference.py +0 -0
  79. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/linking/__init__.py +0 -0
  80. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/linking/answer.py +0 -0
  81. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/linking/augmentation_methods.py +0 -0
  82. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/linking/conversion.py +0 -0
  83. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/linking/library.py +0 -0
  84. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/linking/link_checks.py +0 -0
  85. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/linking/model_dataset.py +0 -0
  86. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/linking/regeneration.py +0 -0
  87. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/linking/stored.py +0 -0
  88. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/linking/training_methods.py +0 -0
  89. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/linking/user_methods.py +0 -0
  90. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/notebook/__init__.py +0 -0
  91. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/notebook/templates/_partials.tpl +0 -0
  92. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/notebook/templates/embeddings.tpl +0 -0
  93. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/notebook/templates/nlp_finetune.tpl +0 -0
  94. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/notebook/templates/nlp_generative.tpl +0 -0
  95. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/notebook/templates/survival.tpl +0 -0
  96. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/notebook/templates/tabular_timeseries.tpl +0 -0
  97. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/notebook/templates/vision_from_scratch.tpl +0 -0
  98. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/raw_mode/__init__.py +0 -0
  99. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/raw_mode/classes.py +0 -0
  100. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/raw_mode/declaration.py +0 -0
  101. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/raw_mode/fitted_model.py +0 -0
  102. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/raw_mode/frame_recording.py +0 -0
  103. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/raw_mode/link_check.py +0 -0
  104. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/raw_mode/pairs.py +0 -0
  105. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/raw_mode/schema.py +0 -0
  106. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/raw_mode/seed_prefixes.py +0 -0
  107. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/raw_mode/sklearn_check.py +0 -0
  108. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/raw_mode/survival.py +0 -0
  109. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/raw_mode/torch_checks.py +0 -0
  110. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/raw_mode/width_note.py +0 -0
  111. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/__init__.py +0 -0
  112. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/augmentation.py +0 -0
  113. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/callbacks.py +0 -0
  114. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/converted.py +0 -0
  115. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/features.py +0 -0
  116. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/image_channels.py +0 -0
  117. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/image_size.py +0 -0
  118. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/link_total.py +0 -0
  119. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/lora.py +0 -0
  120. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/lora_validation.py +0 -0
  121. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/loss.py +0 -0
  122. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/loss_policy.py +0 -0
  123. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/loss_source.py +0 -0
  124. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/memory_estimate.py +0 -0
  125. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/memory_sizing.py +0 -0
  126. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/plan.py +0 -0
  127. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/preprocessing.py +0 -0
  128. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/shape.py +0 -0
  129. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/subdataset.py +0 -0
  130. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/submitter.py +0 -0
  131. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/training/summary.py +0 -0
  132. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/__init__.py +0 -0
  133. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/lifelines_time_to_event.py +0 -0
  134. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/loss_config.py +0 -0
  135. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/model_params.py +0 -0
  136. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/model_upload.py +0 -0
  137. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/nlp_probes.py +0 -0
  138. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/scikit_survival_time_to_event.py +0 -0
  139. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/sequence_length.py +0 -0
  140. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/skl_tabular_base.py +0 -0
  141. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/skl_tabular_classifier.py +0 -0
  142. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/skl_tabular_regression.py +0 -0
  143. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/statistical_base.py +0 -0
  144. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/survival_base.py +0 -0
  145. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_causal_language_modeler.py +0 -0
  146. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_embeddings.py +0 -0
  147. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_handler.py +0 -0
  148. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_image_classifier.py +0 -0
  149. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_key_point_detector.py +0 -0
  150. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_masked_language_modeler.py +0 -0
  151. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_multi_label_text_classifier.py +0 -0
  152. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_nlp_base.py +0 -0
  153. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_object_detector.py +0 -0
  154. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_semantic_segmentation.py +0 -0
  155. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_sentence_pair_classifier.py +0 -0
  156. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_seq2seq_modeler.py +0 -0
  157. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_smoke_loop.py +0 -0
  158. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_tabular_classifier.py +0 -0
  159. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_tabular_regression.py +0 -0
  160. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_text_classifier.py +0 -0
  161. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_text_regressor.py +0 -0
  162. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_time_series_classifier.py +0 -0
  163. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_time_series_forecaster.py +0 -0
  164. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_time_to_event.py +0 -0
  165. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/torch_token_classifier.py +0 -0
  166. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/user_methods.py +0 -0
  167. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/weight_loaders.py +0 -0
  168. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/weights_averaging.py +0 -0
  169. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/weights_check.py +0 -0
  170. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/upload/weights_parts.py +0 -0
  171. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/user.py +0 -0
  172. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/__init__.py +0 -0
  173. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/class_order.py +0 -0
  174. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/constants.py +0 -0
  175. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/custom_loss_probe.py +0 -0
  176. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/data_probes.py +0 -0
  177. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/declared_classes.py +0 -0
  178. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/declared_cls.py +0 -0
  179. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/detection_utils.py +0 -0
  180. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/device.py +0 -0
  181. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/entry_point.py +0 -0
  182. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/errors.py +0 -0
  183. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/feature_dict.py +0 -0
  184. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/loss_shape.py +0 -0
  185. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/model_loading.py +0 -0
  186. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/model_params.py +0 -0
  187. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/nlp_model_probes.py +0 -0
  188. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/registry.py +0 -0
  189. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/resources.py +0 -0
  190. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/safetensors_io.py +0 -0
  191. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/staging.py +0 -0
  192. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/synthetic_self_supervised.py +0 -0
  193. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/synthetic_text.py +0 -0
  194. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/tabular_classification_utils.py +0 -0
  195. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/tabular_custom_loss_utils.py +0 -0
  196. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/tabular_regression_utils.py +0 -0
  197. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/text_classification_utils.py +0 -0
  198. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/time_series_utils.py +0 -0
  199. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/time_to_event_utils.py +0 -0
  200. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/tokenizer_checks.py +0 -0
  201. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/utils/warnings_once.py +0 -0
  202. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/validation/__init__.py +0 -0
  203. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/validation/checker.py +0 -0
  204. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/validation/estimator_checks.py +0 -0
  205. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/validation/header_rules.py +0 -0
  206. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/validation/lifelines_checks.py +0 -0
  207. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/validation/pytorch_checks.py +0 -0
  208. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/validation/rewriter.py +0 -0
  209. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/validation/scikit_survival_checks.py +0 -0
  210. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc/validation/sklearn_checks.py +0 -0
  211. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc.egg-info/SOURCES.txt +0 -0
  212. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc.egg-info/dependency_links.txt +0 -0
  213. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc.egg-info/requires.txt +0 -0
  214. {tracebloc-6.0.0 → tracebloc-6.0.2}/tracebloc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tracebloc
3
- Version: 6.0.0
3
+ Version: 6.0.2
4
4
  Summary: Build AI with anyone. On data that can't move. SDK for the tracebloc collaborative AI workspace.
5
5
  Author-email: tracebloc <lukas@tracebloc.io>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tracebloc"
7
- version = "6.0.0"
7
+ version = "6.0.2"
8
8
  description = "Build AI with anyone. On data that can't move. SDK for the tracebloc collaborative AI workspace."
9
9
  license = "MIT"
10
10
  license-files = ["license.txt"]
@@ -26,8 +26,9 @@ implement idempotent retry at their layer if they want.
26
26
 
27
27
  **Overload (HTTP 429):** the backend sheds load with ``429`` plus
28
28
  ``Retry-After``. A rejected request was not processed, so reads
29
- (``GET``/``HEAD``/``OPTIONS``) and login wait the stated time and retry
30
- (:func:`_send_honouring_429`: each wait capped at :data:`MAX_RETRY_WAIT_SECONDS`,
29
+ (``GET``/``HEAD``/``OPTIONS``), login and any call that passes
30
+ ``retry_on_429=True`` (the linking ``check-model/`` POSTs) wait the stated
31
+ time and retry (:func:`_send_honouring_429`: each wait capped at :data:`MAX_RETRY_WAIT_SECONDS`,
31
32
  all waits at :data:`MAX_TOTAL_WAIT_SECONDS`). Past the budget, and at once for
32
33
  every other call, the failure says the service is busy (:data:`BUSY_MESSAGE`).
33
34
  """
@@ -318,22 +319,22 @@ class TraceblocClient:
318
319
  timeout: Optional[float] = None,
319
320
  raise_on_error: bool = True,
320
321
  stream: bool = False,
322
+ retry_on_429: bool = False,
321
323
  ) -> requests.Response:
322
324
  """Issue a request to the tracebloc API.
323
325
 
324
326
  Args:
325
327
  raise_on_error: If ``True`` (the default), non-2xx responses
326
- raise :class:`APIError`. Pass ``False`` when the caller
327
- wants to inspect the status code and body directly —
328
- e.g. :meth:`User.__check_model` maps specific status
329
- codes to different :class:`DatasetLinkingError`
330
- messages. Network failures (no response at all) still
331
- raise :class:`APIError` with ``status_code=0``, and an
332
- HTTP 426 (this SDK is below the supported floor) raises
333
- with the upgrade message, regardless of this flag.
328
+ raise :class:`APIError`; pass ``False`` to inspect the status
329
+ and body yourself. No response at all still raises with
330
+ ``status_code=0``, and a 426 (this SDK is below the supported
331
+ floor) raises with the upgrade message, whatever this says.
334
332
  stream: Leave the body unread so the caller can iterate it
335
333
  (``User.fetch_model``'s multi-GB weights). The caller then
336
334
  owns closing the response.
335
+ retry_on_429: Wait out a 429's ``Retry-After`` and re-send, as
336
+ reads do. Pass it for a write whose body is re-sendable and
337
+ that the server did not process when it answered 429.
337
338
 
338
339
  Returns:
339
340
  The :class:`requests.Response`.
@@ -345,8 +346,7 @@ class TraceblocClient:
345
346
  """
346
347
  url = self._url(path)
347
348
  request_timeout = timeout if timeout is not None else self._config.timeout_seconds
348
- # Only passed when asked for, so every existing call is issued exactly
349
- # as before.
349
+ # Only passed when asked for, so other calls are issued unchanged.
350
350
  extra: Mapping[str, Any] = {"stream": True} if stream else {}
351
351
  verb = method.upper()
352
352
  try:
@@ -362,17 +362,16 @@ class TraceblocClient:
362
362
  timeout=request_timeout,
363
363
  **extra,
364
364
  ),
365
- retry=verb in _RETRY_ON_429_METHODS,
365
+ retry=retry_on_429 or verb in _RETRY_ON_429_METHODS,
366
366
  )
367
367
  except requests.RequestException as error:
368
368
  raise APIError(
369
369
  0, f"Failed to reach tracebloc API at {url}: {format_exception(error)}"
370
370
  ) from error
371
371
 
372
- # A 426 is the backend refusing this SDK outright, not a status a
373
- # caller can handle, so it raises whatever ``raise_on_error`` says;
374
- # otherwise an opted-out caller (``start()``'s ``POST experiments/``)
375
- # swallows the upgrade message into its own generic failure.
372
+ # A 426 refuses this SDK outright, so it raises whatever ``raise_on_error``
373
+ # says; otherwise an opted-out caller (``start()``'s ``POST experiments/``)
374
+ # would swallow the upgrade message into its own generic failure.
376
375
  if response.status_code == 426 or (raise_on_error and not response.ok):
377
376
  raise APIError(response.status_code, _error_message(response))
378
377
  return response
@@ -39,7 +39,9 @@ def link_request(dataset_id, stored, *, model_id, ext, framework, category, clas
39
39
  def post_link_check(client, data, api_base_url):
40
40
  """POST ``data`` to check-model; a network failure is a :class:`DatasetLinkingError`."""
41
41
  try:
42
- return client.post("check-model/", data=data, raise_on_error=False)
42
+ return client.post(
43
+ "check-model/", data=data, raise_on_error=False, retry_on_429=True
44
+ )
43
45
  except APIError as api_error:
44
46
  # raise_on_error=False suppresses HTTP-status raises except a
45
47
  # 426 (this SDK is below the supported floor), which carries its
@@ -9,6 +9,8 @@ import os
9
9
  import json
10
10
  from termcolor import colored
11
11
  import numbers
12
+ from typing import Any
13
+ from tracebloc.client import BUSY_MESSAGE
12
14
  from tracebloc.compat.deprecation import discard_removed_kwarg
13
15
  from tracebloc.training import subdataset
14
16
  from tracebloc.training.subdataset import class_set_error, dataset_error, request_error
@@ -140,9 +142,15 @@ class DataPlanMethods:
140
142
  "type": "recalculate_image_count_per_edge",
141
143
  "dataset_key": self._dataset_id,
142
144
  }
143
- re = self._client.post("check-model/", data=data, raise_on_error=False)
144
- body_unicode = re.content.decode("utf-8")
145
- content = json.loads(body_unicode)
145
+ re = self._client.post(
146
+ "check-model/", data=data, raise_on_error=False, retry_on_429=True
147
+ )
148
+ busy = re.status_code == 429 # wait budget spent: no body to parse
149
+ content: dict[str, Any] = (
150
+ {"message": BUSY_MESSAGE}
151
+ if busy
152
+ else json.loads(re.content.decode("utf-8"))
153
+ )
146
154
  if re.status_code == 200:
147
155
  per_edge = content["total_data_per_edge"]
148
156
  if problem := subdataset.resolved_error(per_edge, training_dataset):
@@ -163,8 +171,8 @@ class DataPlanMethods:
163
171
  if "training_size" in self._error_method: # same sub-dataset written
164
172
  self._error_method.remove("training_size")
165
173
  self._remove_error_method("training_classes")
166
- else: # pragma: no cover
167
- if not self._client.config.verbose_errors: # the deployment's (#534)
174
+ else:
175
+ if not busy and not self._client.config.verbose_errors: # (#534)
168
176
  self._print_error(
169
177
  "training_classes",
170
178
  "trainingClasses:Error while setting subdataset\n",
@@ -29,6 +29,7 @@ from typing import NamedTuple
29
29
  from termcolor import colored
30
30
 
31
31
  from ..api.responses import REUPLOAD_HINT, is_load_failed
32
+ from ..client import BUSY_MESSAGE
32
33
  from ..raw_mode.width_note import raw_width_note
33
34
  from .answer import compared_keys
34
35
  from .link_checks import (
@@ -204,6 +205,10 @@ def _raise_for_unmapped_status(response) -> None:
204
205
  # blip during linking is no longer indistinguishable from a real
205
206
  # model/dataset-pairing rejection.
206
207
  status = response.status_code
208
+ if status == HTTPStatus.TOO_MANY_REQUESTS:
209
+ # The wait budget ran out on a 429: say the service is busy, as
210
+ # every other SDK call does, not a pairing rejection.
211
+ raise DatasetLinkingError(BUSY_MESSAGE) from APIError(status, BUSY_MESSAGE)
207
212
  reason = _status_reason(response)
208
213
  status_text = f"HTTP {status} {reason}".rstrip()
209
214
  body = _parse_api_message(response)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tracebloc
3
- Version: 6.0.0
3
+ Version: 6.0.2
4
4
  Summary: Build AI with anyone. On data that can't move. SDK for the tracebloc collaborative AI workspace.
5
5
  Author-email: tracebloc <lukas@tracebloc.io>
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes