tracebloc 7.1.2__tar.gz → 7.1.4__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 (221) hide show
  1. {tracebloc-7.1.2 → tracebloc-7.1.4}/PKG-INFO +1 -1
  2. {tracebloc-7.1.2 → tracebloc-7.1.4}/pyproject.toml +1 -1
  3. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/api/responses.py +21 -1
  4. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/datasets/keypoint_detection.py +2 -1
  5. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/linking/response.py +2 -1
  6. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/model_upload.py +4 -2
  7. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc.egg-info/PKG-INFO +1 -1
  8. {tracebloc-7.1.2 → tracebloc-7.1.4}/MANIFEST.in +0 -0
  9. {tracebloc-7.1.2 → tracebloc-7.1.4}/README.md +0 -0
  10. {tracebloc-7.1.2 → tracebloc-7.1.4}/license.txt +0 -0
  11. {tracebloc-7.1.2 → tracebloc-7.1.4}/setup.cfg +0 -0
  12. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/__init__.py +0 -0
  13. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/api/__init__.py +0 -0
  14. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/api/experiment_status.py +0 -0
  15. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/api/multipart.py +0 -0
  16. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/auth/__init__.py +0 -0
  17. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/auth/cli_profile.py +0 -0
  18. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/auth/env_login.py +0 -0
  19. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/checks.py +0 -0
  20. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/client.py +0 -0
  21. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/compat/__init__.py +0 -0
  22. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/compat/deprecation.py +0 -0
  23. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/compat/frameworks.py +0 -0
  24. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/config.py +0 -0
  25. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/console/__init__.py +0 -0
  26. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/console/logger.py +0 -0
  27. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/contracts/stage_urls.v1.json +0 -0
  28. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/contracts/stage_urls.v1.source.json +0 -0
  29. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/contracts/survival_payload.py +0 -0
  30. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/contracts/training_requirements.source.json +0 -0
  31. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/contracts/training_requirements.txt +0 -0
  32. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/__init__.py +0 -0
  33. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/acceptance.py +0 -0
  34. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/families/__init__.py +0 -0
  35. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/families/hf/__init__.py +0 -0
  36. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/families/hf/_build.py +0 -0
  37. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/families/hf/_length.py +0 -0
  38. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/families/hf/_model_type.py +0 -0
  39. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/families/tabular.py +0 -0
  40. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/families/vision/__init__.py +0 -0
  41. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/families/vision/_matching.py +0 -0
  42. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/gate.py +0 -0
  43. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/heads.py +0 -0
  44. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/interfaces.py +0 -0
  45. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/licence/__init__.py +0 -0
  46. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/licence/spdx.py +0 -0
  47. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/outputs.py +0 -0
  48. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/owncode/__init__.py +0 -0
  49. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/owncode/arguments.py +0 -0
  50. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/owncode/assemble.py +0 -0
  51. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/owncode/checkpoint.py +0 -0
  52. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/owncode/gate_rules.py +0 -0
  53. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/owncode/generate.py +0 -0
  54. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/owncode/head.py +0 -0
  55. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/owncode/import_check.py +0 -0
  56. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/owncode/layer0.py +0 -0
  57. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/owncode/live.py +0 -0
  58. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/owncode/model_class.py +0 -0
  59. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/owncode/remote.py +0 -0
  60. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/owncode/repo.py +0 -0
  61. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/owncode/shake.py +0 -0
  62. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/owncode/source_tree.py +0 -0
  63. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/package.py +0 -0
  64. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/package_folder.py +0 -0
  65. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/padding.py +0 -0
  66. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/report.py +0 -0
  67. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/tokenizers.py +0 -0
  68. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/convert/training_versions.py +0 -0
  69. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/datasets/__init__.py +0 -0
  70. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/datasets/base.py +0 -0
  71. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/datasets/detection.py +0 -0
  72. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/datasets/semantic_segmentation.py +0 -0
  73. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/datasets/tabular.py +0 -0
  74. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/datasets/text.py +0 -0
  75. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/datasets/time_series.py +0 -0
  76. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/datasets/time_to_event.py +0 -0
  77. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/downloads/lifelines_weights.py +0 -0
  78. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/downloads/seed_weights.py +0 -0
  79. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/exceptions.py +0 -0
  80. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/fetch.py +0 -0
  81. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/inference.py +0 -0
  82. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/linking/__init__.py +0 -0
  83. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/linking/answer.py +0 -0
  84. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/linking/augmentation_methods.py +0 -0
  85. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/linking/check_model.py +0 -0
  86. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/linking/conversion.py +0 -0
  87. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/linking/data_methods.py +0 -0
  88. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/linking/library.py +0 -0
  89. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/linking/link_checks.py +0 -0
  90. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/linking/model_dataset.py +0 -0
  91. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/linking/regeneration.py +0 -0
  92. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/linking/stored.py +0 -0
  93. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/linking/training_methods.py +0 -0
  94. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/linking/upload_methods.py +0 -0
  95. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/linking/user_methods.py +0 -0
  96. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/notebook/__init__.py +0 -0
  97. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/notebook/templates/_partials.tpl +0 -0
  98. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/notebook/templates/embeddings.tpl +0 -0
  99. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/notebook/templates/nlp_finetune.tpl +0 -0
  100. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/notebook/templates/nlp_generative.tpl +0 -0
  101. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/notebook/templates/survival.tpl +0 -0
  102. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/notebook/templates/tabular_timeseries.tpl +0 -0
  103. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/notebook/templates/vision_from_scratch.tpl +0 -0
  104. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/py.typed +0 -0
  105. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/raw_mode/__init__.py +0 -0
  106. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/raw_mode/classes.py +0 -0
  107. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/raw_mode/declaration.py +0 -0
  108. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/raw_mode/fitted_model.py +0 -0
  109. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/raw_mode/frame_recording.py +0 -0
  110. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/raw_mode/link_check.py +0 -0
  111. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/raw_mode/pairs.py +0 -0
  112. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/raw_mode/schema.py +0 -0
  113. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/raw_mode/seed_prefixes.py +0 -0
  114. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/raw_mode/sklearn_check.py +0 -0
  115. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/raw_mode/survival.py +0 -0
  116. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/raw_mode/torch_checks.py +0 -0
  117. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/raw_mode/width_note.py +0 -0
  118. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/__init__.py +0 -0
  119. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/augmentation.py +0 -0
  120. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/callbacks.py +0 -0
  121. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/converted.py +0 -0
  122. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/features.py +0 -0
  123. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/image_channels.py +0 -0
  124. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/image_size.py +0 -0
  125. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/link_total.py +0 -0
  126. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/lora.py +0 -0
  127. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/lora_validation.py +0 -0
  128. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/loss.py +0 -0
  129. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/loss_policy.py +0 -0
  130. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/loss_source.py +0 -0
  131. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/memory_estimate.py +0 -0
  132. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/memory_sizing.py +0 -0
  133. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/plan.py +0 -0
  134. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/preprocessing.py +0 -0
  135. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/shape.py +0 -0
  136. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/subdataset.py +0 -0
  137. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/submitter.py +0 -0
  138. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/training/summary.py +0 -0
  139. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/__init__.py +0 -0
  140. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/lifelines_time_to_event.py +0 -0
  141. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/loss_config.py +0 -0
  142. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/model_params.py +0 -0
  143. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/nlp_probes.py +0 -0
  144. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/scikit_survival_time_to_event.py +0 -0
  145. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/skl_tabular_base.py +0 -0
  146. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/skl_tabular_classifier.py +0 -0
  147. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/skl_tabular_regression.py +0 -0
  148. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/statistical_base.py +0 -0
  149. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/survival_base.py +0 -0
  150. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_causal_language_modeler.py +0 -0
  151. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_embeddings.py +0 -0
  152. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_handler.py +0 -0
  153. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_image_classifier.py +0 -0
  154. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_key_point_detector.py +0 -0
  155. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_masked_language_modeler.py +0 -0
  156. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_multi_label_text_classifier.py +0 -0
  157. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_nlp_base.py +0 -0
  158. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_object_detector.py +0 -0
  159. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_semantic_segmentation.py +0 -0
  160. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_sentence_pair_classifier.py +0 -0
  161. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_seq2seq_modeler.py +0 -0
  162. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_smoke_loop.py +0 -0
  163. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_tabular_classifier.py +0 -0
  164. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_tabular_regression.py +0 -0
  165. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_text_classifier.py +0 -0
  166. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_text_regressor.py +0 -0
  167. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_time_series_classifier.py +0 -0
  168. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_time_series_forecaster.py +0 -0
  169. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_time_to_event.py +0 -0
  170. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/torch_token_classifier.py +0 -0
  171. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/weights_averaging.py +0 -0
  172. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/weights_check.py +0 -0
  173. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/upload/weights_parts.py +0 -0
  174. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/user.py +0 -0
  175. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/__init__.py +0 -0
  176. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/class_order.py +0 -0
  177. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/constants.py +0 -0
  178. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/custom_loss_probe.py +0 -0
  179. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/data_probes.py +0 -0
  180. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/declared_classes.py +0 -0
  181. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/declared_cls.py +0 -0
  182. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/detection_utils.py +0 -0
  183. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/device.py +0 -0
  184. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/entry_point.py +0 -0
  185. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/errors.py +0 -0
  186. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/feature_dict.py +0 -0
  187. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/loss_shape.py +0 -0
  188. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/model_loading.py +0 -0
  189. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/model_params.py +0 -0
  190. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/nlp_model_probes.py +0 -0
  191. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/peak_memory.py +0 -0
  192. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/registry.py +0 -0
  193. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/resources.py +0 -0
  194. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/safetensors_io.py +0 -0
  195. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/sequence_length.py +0 -0
  196. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/staging.py +0 -0
  197. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/synthetic_self_supervised.py +0 -0
  198. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/synthetic_text.py +0 -0
  199. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/tabular_classification_utils.py +0 -0
  200. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/tabular_custom_loss_utils.py +0 -0
  201. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/tabular_regression_utils.py +0 -0
  202. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/time_series_utils.py +0 -0
  203. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/time_to_event_utils.py +0 -0
  204. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/tokenizer_checks.py +0 -0
  205. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/torch_safe_globals.py +0 -0
  206. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/warnings_once.py +0 -0
  207. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/weight_loaders.py +0 -0
  208. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/utils/weights_caps.py +0 -0
  209. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/validation/__init__.py +0 -0
  210. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/validation/checker.py +0 -0
  211. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/validation/estimator_checks.py +0 -0
  212. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/validation/header_rules.py +0 -0
  213. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/validation/lifelines_checks.py +0 -0
  214. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/validation/pytorch_checks.py +0 -0
  215. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/validation/rewriter.py +0 -0
  216. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/validation/scikit_survival_checks.py +0 -0
  217. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc/validation/sklearn_checks.py +0 -0
  218. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc.egg-info/SOURCES.txt +0 -0
  219. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc.egg-info/dependency_links.txt +0 -0
  220. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc.egg-info/requires.txt +0 -0
  221. {tracebloc-7.1.2 → tracebloc-7.1.4}/tracebloc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tracebloc
3
- Version: 7.1.2
3
+ Version: 7.1.4
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 = "7.1.2"
7
+ version = "7.1.4"
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"]
@@ -64,12 +64,32 @@ def own_message(body: Mapping[str, object]) -> bool:
64
64
  )
65
65
 
66
66
 
67
+ #: Said after a 401 on an authenticated call: the token was revoked (a sign-out
68
+ #: elsewhere) or expired, and the backend's own "Token has been revoked." names
69
+ #: no next step.
70
+ SESSION_ENDED_HINT = (
71
+ "Your session has expired or was signed out. "
72
+ "Sign in again with User(...) (or user.login())."
73
+ )
74
+
75
+
76
+ def with_session_hint(message: str, status_code: object) -> str:
77
+ """``message``, plus :data:`SESSION_ENDED_HINT` when ``status_code`` is 401."""
78
+ if status_code == 401:
79
+ return f"{message}\n{SESSION_ENDED_HINT}" if message else SESSION_ENDED_HINT
80
+ return message
81
+
82
+
67
83
  def extract_error_message(response: requests.Response) -> str:
68
84
  """Best-effort user-facing error string from an HTTP response.
69
85
 
70
86
  :func:`error_text` of the JSON body, else ``response.reason``, else a
71
- generic string. Never raises.
87
+ generic string; a 401 adds :data:`SESSION_ENDED_HINT`. Never raises.
72
88
  """
89
+ return with_session_hint(_response_text(response), response.status_code)
90
+
91
+
92
+ def _response_text(response: requests.Response) -> str:
73
93
  try:
74
94
  body = response.json()
75
95
  except (ValueError, _json.JSONDecodeError):
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ import random
5
6
  from collections.abc import Callable
6
7
  from typing import Any, ClassVar
7
8
 
@@ -69,7 +70,7 @@ class FakeKeypointDetectionDataset(SyntheticDataset[tuple[Any, TensorDict]]):
69
70
  self, num_feature_points: int, size: tuple[int, int]
70
71
  ) -> list[list[int]]:
71
72
  return [
72
- [np.random.randint(0, s) for s in size] + [1]
73
+ [random.randrange(s) for s in size] + [1]
73
74
  for _ in range(num_feature_points)
74
75
  ]
75
76
 
@@ -31,7 +31,7 @@ from typing import TYPE_CHECKING, Any, NamedTuple, cast
31
31
 
32
32
  from termcolor import colored
33
33
 
34
- from ..api.responses import REUPLOAD_HINT, error_text, is_load_failed
34
+ from ..api.responses import REUPLOAD_HINT, error_text, is_load_failed, with_session_hint
35
35
  from ..client import BUSY_MESSAGE
36
36
  from ..console.logger import say
37
37
  from ..raw_mode.width_note import raw_width_note
@@ -230,6 +230,7 @@ def _raise_for_unmapped_status(response: requests.Response) -> None:
230
230
  )
231
231
  if body:
232
232
  error_message += f"\n{body}"
233
+ error_message = with_session_hint(error_message, status)
233
234
  raise DatasetLinkingError(error_message) from APIError(
234
235
  status,
235
236
  body or reason or "Unknown error",
@@ -10,6 +10,7 @@ from typing import IO, TYPE_CHECKING, Any
10
10
  from termcolor import colored
11
11
  from tqdm import tqdm
12
12
 
13
+ from tracebloc.api.responses import with_session_hint
13
14
  from tracebloc.client import TraceblocClient
14
15
  from tracebloc.console.logger import say
15
16
  from tracebloc.exceptions import APIError, ModelValidationError, UnsupportedModelTypeError
@@ -296,8 +297,9 @@ class Model(WeightsCheckMixin, WeightsAveragingMixin, LossConfigMixin):
296
297
  # Truncate long bodies (e.g. HTML 500 pages) to keep the
297
298
  # eventual ModelValidationError message readable.
298
299
  body_snippet = r.content.decode("utf-8", errors="replace")[:500]
299
- self.failure_reason = (
300
- f"server returned HTTP {r.status_code}: {body_snippet}"
300
+ self.failure_reason = with_session_hint(
301
+ f"server returned HTTP {r.status_code}: {body_snippet}",
302
+ r.status_code,
301
303
  )
302
304
  if not check_status:
303
305
  tex = colored(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tracebloc
3
- Version: 7.1.2
3
+ Version: 7.1.4
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
File without changes
File without changes