tracebloc 7.0.0__tar.gz → 7.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.
- {tracebloc-7.0.0 → tracebloc-7.0.2}/PKG-INFO +1 -1
- {tracebloc-7.0.0 → tracebloc-7.0.2}/pyproject.toml +10 -39
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/config.py +46 -22
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/user.py +8 -6
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc.egg-info/PKG-INFO +1 -1
- {tracebloc-7.0.0 → tracebloc-7.0.2}/MANIFEST.in +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/README.md +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/license.txt +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/setup.cfg +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/api/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/api/experiment_status.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/api/multipart.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/api/responses.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/auth/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/auth/cli_profile.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/auth/env_login.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/checks.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/client.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/compat/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/compat/deprecation.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/compat/frameworks.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/console/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/console/logger.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/contracts/stage_urls.v1.json +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/contracts/stage_urls.v1.source.json +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/contracts/survival_payload.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/contracts/training_requirements.source.json +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/contracts/training_requirements.txt +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/acceptance.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/hf/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/hf/_build.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/hf/_length.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/hf/_model_type.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/tabular.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/vision/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/families/vision/_matching.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/gate.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/heads.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/interfaces.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/licence/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/licence/spdx.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/outputs.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/arguments.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/assemble.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/checkpoint.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/gate_rules.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/generate.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/head.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/import_check.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/layer0.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/live.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/model_class.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/remote.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/repo.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/shake.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/owncode/source_tree.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/package.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/package_folder.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/padding.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/report.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/tokenizers.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/convert/training_versions.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/base.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/detection.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/keypoint_detection.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/semantic_segmentation.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/tabular.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/text.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/time_series.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/datasets/time_to_event.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/downloads/lifelines_weights.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/downloads/seed_weights.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/exceptions.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/fetch.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/inference.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/answer.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/augmentation_methods.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/check_model.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/conversion.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/data_methods.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/library.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/link_checks.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/model_dataset.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/regeneration.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/response.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/stored.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/training_methods.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/upload_methods.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/linking/user_methods.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/templates/_partials.tpl +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/templates/embeddings.tpl +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/templates/nlp_finetune.tpl +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/templates/nlp_generative.tpl +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/templates/survival.tpl +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/templates/tabular_timeseries.tpl +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/notebook/templates/vision_from_scratch.tpl +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/py.typed +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/classes.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/declaration.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/fitted_model.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/frame_recording.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/link_check.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/pairs.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/schema.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/seed_prefixes.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/sklearn_check.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/survival.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/torch_checks.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/raw_mode/width_note.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/augmentation.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/callbacks.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/converted.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/features.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/image_channels.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/image_size.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/link_total.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/lora.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/lora_validation.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/loss.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/loss_policy.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/loss_source.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/memory_estimate.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/memory_sizing.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/plan.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/preprocessing.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/shape.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/subdataset.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/submitter.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/training/summary.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/lifelines_time_to_event.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/loss_config.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/model_params.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/model_upload.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/nlp_probes.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/scikit_survival_time_to_event.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/skl_tabular_base.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/skl_tabular_classifier.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/skl_tabular_regression.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/statistical_base.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/survival_base.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_causal_language_modeler.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_embeddings.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_handler.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_image_classifier.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_key_point_detector.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_masked_language_modeler.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_multi_label_text_classifier.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_nlp_base.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_object_detector.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_semantic_segmentation.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_sentence_pair_classifier.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_seq2seq_modeler.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_smoke_loop.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_tabular_classifier.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_tabular_regression.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_text_classifier.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_text_regressor.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_time_series_classifier.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_time_series_forecaster.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_time_to_event.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/torch_token_classifier.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/weights_averaging.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/weights_check.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/upload/weights_parts.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/class_order.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/constants.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/custom_loss_probe.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/data_probes.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/declared_classes.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/declared_cls.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/detection_utils.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/device.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/entry_point.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/errors.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/feature_dict.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/loss_shape.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/model_loading.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/model_params.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/nlp_model_probes.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/peak_memory.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/registry.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/resources.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/safetensors_io.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/sequence_length.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/staging.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/synthetic_self_supervised.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/synthetic_text.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/tabular_classification_utils.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/tabular_custom_loss_utils.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/tabular_regression_utils.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/time_series_utils.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/time_to_event_utils.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/tokenizer_checks.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/warnings_once.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/weight_loaders.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/utils/weights_caps.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/__init__.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/checker.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/estimator_checks.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/header_rules.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/lifelines_checks.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/pytorch_checks.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/rewriter.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/scikit_survival_checks.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc/validation/sklearn_checks.py +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc.egg-info/SOURCES.txt +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc.egg-info/dependency_links.txt +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc.egg-info/requires.txt +0 -0
- {tracebloc-7.0.0 → tracebloc-7.0.2}/tracebloc.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tracebloc"
|
|
7
|
-
version = "7.0.
|
|
7
|
+
version = "7.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"]
|
|
@@ -273,50 +273,21 @@ ignore = ["N812"]
|
|
|
273
273
|
"tracebloc/upload/scikit_survival_time_to_event.py" = ["N806"]
|
|
274
274
|
|
|
275
275
|
# --- pyright (tracebloc/backend#9172) --------------------------------------
|
|
276
|
-
#
|
|
277
|
-
#
|
|
278
|
-
#
|
|
279
|
-
# runs scripts/check_pyright_baseline.py, which holds the errors per package and
|
|
280
|
-
# rule to pyright-baseline.json, a count that only goes down.
|
|
276
|
+
# Strict over every module under tracebloc/, with no list of packages for PRs to
|
|
277
|
+
# edit (tests/test_pyproject_layout.py). `make typecheck` holds the errors to
|
|
278
|
+
# pyright-baseline.json, which only goes down (scripts/check_pyright_baseline.py).
|
|
281
279
|
[tool.pyright]
|
|
282
280
|
include = ["tracebloc"]
|
|
283
|
-
typeCheckingMode = "
|
|
281
|
+
typeCheckingMode = "strict"
|
|
284
282
|
pythonVersion = "3.11"
|
|
285
|
-
# One entry per line, sorted, each with a trailing comma, so PRs adding packages
|
|
286
|
-
# far apart in the list edit different lines (tests/test_pyproject_layout.py).
|
|
287
|
-
strict = [
|
|
288
|
-
"tracebloc/__init__.py",
|
|
289
|
-
"tracebloc/api",
|
|
290
|
-
"tracebloc/auth",
|
|
291
|
-
"tracebloc/checks.py",
|
|
292
|
-
"tracebloc/client.py",
|
|
293
|
-
"tracebloc/compat",
|
|
294
|
-
"tracebloc/config.py",
|
|
295
|
-
"tracebloc/console",
|
|
296
|
-
"tracebloc/contracts",
|
|
297
|
-
"tracebloc/convert",
|
|
298
|
-
"tracebloc/datasets",
|
|
299
|
-
"tracebloc/downloads",
|
|
300
|
-
"tracebloc/exceptions.py",
|
|
301
|
-
"tracebloc/fetch.py",
|
|
302
|
-
"tracebloc/inference.py",
|
|
303
|
-
"tracebloc/linking",
|
|
304
|
-
"tracebloc/notebook",
|
|
305
|
-
"tracebloc/raw_mode",
|
|
306
|
-
"tracebloc/training",
|
|
307
|
-
"tracebloc/upload",
|
|
308
|
-
"tracebloc/user.py",
|
|
309
|
-
"tracebloc/utils",
|
|
310
|
-
"tracebloc/validation",
|
|
311
|
-
]
|
|
312
283
|
|
|
313
284
|
# --- import-linter (layers, tracebloc/backend#9172) -----------------------
|
|
314
285
|
# `make lint` runs `lint-imports`. A layer may import any layer below it, never
|
|
315
|
-
# one above, directly or through a chain
|
|
316
|
-
#
|
|
317
|
-
#
|
|
318
|
-
# the
|
|
319
|
-
#
|
|
286
|
+
# one above, directly or through a chain; `validation` sits below `convert`, which
|
|
287
|
+
# reads its header rules and rewriter. Each `ignore_imports` entry is an upward
|
|
288
|
+
# import, one per line, sorted, with a trailing `# tracebloc/<repo>#N` comment
|
|
289
|
+
# naming the ticket that removes it (tests/test_pyproject_layout.py); an entry
|
|
290
|
+
# that no longer matches an import fails the contract, so the list only shrinks.
|
|
320
291
|
|
|
321
292
|
[tool.importlinter]
|
|
322
293
|
root_package = "tracebloc"
|
|
@@ -15,6 +15,8 @@ from importlib import resources
|
|
|
15
15
|
from typing import Any, ClassVar, Mapping, Optional
|
|
16
16
|
from urllib.parse import urlparse
|
|
17
17
|
|
|
18
|
+
from .exceptions import TraceblocError
|
|
19
|
+
|
|
18
20
|
#: The backend's stage -> API base URL contract, vendored byte-for-byte and
|
|
19
21
|
#: pinned by ``contracts/stage_urls.v1.source.json`` beside it. The API half
|
|
20
22
|
#: of every stage row below comes from it, so the SDK cannot drift from the
|
|
@@ -25,16 +27,26 @@ _STAGE_URLS_CONTRACT = ("contracts", "stage_urls.v1.json")
|
|
|
25
27
|
#: only, so this half stays here, keyed by the contract's canonical names.
|
|
26
28
|
_STAGE_FRONTENDS: Mapping[str, str] = {
|
|
27
29
|
"local": "http://localhost:3000/",
|
|
28
|
-
"dev": "https://dev.tracebloc.io/",
|
|
29
30
|
"stg": "https://stg.tracebloc.io/",
|
|
30
31
|
"prod": "https://ai.tracebloc.io/",
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
#:
|
|
34
|
-
#: not carry: ``"
|
|
35
|
-
#:
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
#: A name the SDK accepted before the contract existed that the contract does
|
|
35
|
+
#: not carry: ``""`` is production, for compatibility with the original
|
|
36
|
+
#: ``env_url``.
|
|
37
|
+
_SDK_ONLY_ALIASES: Mapping[str, str] = {"": "prod"}
|
|
38
|
+
|
|
39
|
+
#: The dev deployment is switched off. Its stage and every name for it
|
|
40
|
+
#: (the contract's ``"development"``, the SDK's legacy ``"ds"``) raise
|
|
41
|
+
#: :class:`RetiredStageError`, whether or not the vendored contract still
|
|
42
|
+
#: lists it, so the backend dropping it from the contract changes nothing.
|
|
43
|
+
_RETIRED_STAGES = frozenset({"dev", "development", "ds"})
|
|
44
|
+
|
|
45
|
+
_RETIRED_MESSAGE = "the dev environment was retired; use staging"
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class RetiredStageError(TraceblocError, ValueError):
|
|
49
|
+
"""A stage names a tracebloc deployment that was switched off."""
|
|
38
50
|
|
|
39
51
|
|
|
40
52
|
def _stage_contract() -> dict[str, Any]:
|
|
@@ -46,7 +58,16 @@ def _stage_contract() -> dict[str, Any]:
|
|
|
46
58
|
_CONTRACT = _stage_contract()
|
|
47
59
|
|
|
48
60
|
|
|
49
|
-
def
|
|
61
|
+
def _contract_aliases(contract: dict[str, Any]) -> dict[str, str]:
|
|
62
|
+
"""The contract's aliases, without any of a retired stage."""
|
|
63
|
+
return {
|
|
64
|
+
alias: stage
|
|
65
|
+
for alias, stage in contract.get("aliases", {}).items()
|
|
66
|
+
if stage not in _RETIRED_STAGES and alias not in _RETIRED_STAGES
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def _stage_table(contract: dict[str, Any]) -> dict[str, tuple[str, str]]:
|
|
50
71
|
"""name -> (api_base_url, frontend_url) for every stage and alias.
|
|
51
72
|
|
|
52
73
|
Each contract URL is a bare origin; the SDK joins request paths onto
|
|
@@ -54,13 +75,12 @@ def _stage_table() -> dict[str, tuple[str, str]]:
|
|
|
54
75
|
A contract stage with no frontend above is left out rather than given
|
|
55
76
|
an invented one — the contract test fails on it instead.
|
|
56
77
|
"""
|
|
57
|
-
contract = _CONTRACT
|
|
58
78
|
canonical = {
|
|
59
79
|
stage: (url + "/", _STAGE_FRONTENDS[stage])
|
|
60
80
|
for stage, url in contract["stages"].items()
|
|
61
|
-
if stage in _STAGE_FRONTENDS
|
|
81
|
+
if stage in _STAGE_FRONTENDS and stage not in _RETIRED_STAGES
|
|
62
82
|
}
|
|
63
|
-
aliases = {**_SDK_ONLY_ALIASES, **contract
|
|
83
|
+
aliases = {**_SDK_ONLY_ALIASES, **_contract_aliases(contract)}
|
|
64
84
|
table = dict(canonical)
|
|
65
85
|
for alias, stage in aliases.items():
|
|
66
86
|
if stage in canonical:
|
|
@@ -68,11 +88,11 @@ def _stage_table() -> dict[str, tuple[str, str]]:
|
|
|
68
88
|
return table
|
|
69
89
|
|
|
70
90
|
|
|
71
|
-
_STAGES = _stage_table()
|
|
91
|
+
_STAGES = _stage_table(_CONTRACT)
|
|
72
92
|
|
|
73
93
|
#: The contract's own aliases (``"staging"`` -> ``"stg"``), without the SDK-only
|
|
74
94
|
#: ones: the tracebloc CLI folds its profile keys with exactly these.
|
|
75
|
-
_CONTRACT_ALIASES: Mapping[str, str] = _CONTRACT
|
|
95
|
+
_CONTRACT_ALIASES: Mapping[str, str] = _contract_aliases(_CONTRACT)
|
|
76
96
|
|
|
77
97
|
|
|
78
98
|
@dataclass(frozen=True)
|
|
@@ -80,8 +100,8 @@ class TraceblocConfig:
|
|
|
80
100
|
"""Immutable URL + timeout configuration for a tracebloc environment.
|
|
81
101
|
|
|
82
102
|
Use :meth:`for_environment` to construct an instance from a named
|
|
83
|
-
stage (``"local"``, ``"
|
|
84
|
-
|
|
103
|
+
stage (``"local"``, ``"stg"``, ``"prod"``, or their aliases
|
|
104
|
+
``"staging"``, ``"production"``). For
|
|
85
105
|
custom setups, build the dataclass directly. The defaults are
|
|
86
106
|
production's.
|
|
87
107
|
"""
|
|
@@ -96,8 +116,8 @@ class TraceblocConfig:
|
|
|
96
116
|
verbose_errors: bool = False
|
|
97
117
|
|
|
98
118
|
# Internal stage → (api_base_url, frontend_url) mapping: every stage and
|
|
99
|
-
# alias of the backend's contract (``_stage_table``
|
|
100
|
-
# SDK-only
|
|
119
|
+
# alias of the backend's contract but a retired one (``_stage_table``
|
|
120
|
+
# above), plus the SDK-only name ``""``.
|
|
101
121
|
_ENVIRONMENTS: ClassVar[Mapping[str, tuple[str, str]]] = _STAGES
|
|
102
122
|
|
|
103
123
|
#: Port a scheme already implies, so naming it changes nothing about
|
|
@@ -141,7 +161,7 @@ class TraceblocConfig:
|
|
|
141
161
|
|
|
142
162
|
The reverse of the table above, and deliberately an EXACT match on
|
|
143
163
|
the whole base URL rather than a rewrite of the host
|
|
144
|
-
(``
|
|
164
|
+
(``stg-api.`` -> ``stg.``). A rewrite is a guess: it answers for
|
|
145
165
|
hosts this table has never heard of, and answers confidently.
|
|
146
166
|
``None`` is the honest answer for a URL we do not recognise — the
|
|
147
167
|
in-cluster Service name the notebook pod points at has no frontend
|
|
@@ -151,7 +171,7 @@ class TraceblocConfig:
|
|
|
151
171
|
Exact, but on the NORMALIZED form — see :meth:`_lookup_key`.
|
|
152
172
|
Refusing to rewrite a host and refusing to normalize one are
|
|
153
173
|
different refusals, and only the first one is principled:
|
|
154
|
-
``https://
|
|
174
|
+
``https://STG-API.tracebloc.io/`` *is* the staging API by RFC 3986,
|
|
155
175
|
`requests` sends it to the same place, and answering ``None``
|
|
156
176
|
there drops the link for a session that is on a deployment we
|
|
157
177
|
know perfectly well (review on #535).
|
|
@@ -171,7 +191,7 @@ class TraceblocConfig:
|
|
|
171
191
|
|
|
172
192
|
@classmethod
|
|
173
193
|
def stage_for_api_url(cls, api_base_url: str) -> str | None:
|
|
174
|
-
"""The canonical stage (``local``, ``
|
|
194
|
+
"""The canonical stage (``local``, ``stg``, ``prod``) whose API
|
|
175
195
|
``api_base_url`` is, or ``None`` for a URL no stage serves.
|
|
176
196
|
|
|
177
197
|
Same normalized exact match as :meth:`frontend_for_api_url`; never an
|
|
@@ -214,19 +234,23 @@ class TraceblocConfig:
|
|
|
214
234
|
|
|
215
235
|
Args:
|
|
216
236
|
stage: A stage or alias of the backend's stage contract
|
|
217
|
-
(``"local"``, ``"
|
|
218
|
-
``"
|
|
219
|
-
legacy ``"ds"`` (development), or ``""`` (empty string,
|
|
237
|
+
(``"local"``, ``"stg"``/``"staging"``,
|
|
238
|
+
``"prod"``/``"production"``), or ``""`` (empty string,
|
|
220
239
|
treated as production for compatibility with the original
|
|
221
240
|
``env_url`` behavior). Named ``stage`` since the SDK-wide
|
|
222
241
|
naming pass.
|
|
223
242
|
timeout_seconds: HTTP timeout in seconds. Defaults to 30.
|
|
224
243
|
|
|
225
244
|
Raises:
|
|
245
|
+
RetiredStageError: If ``stage`` names the retired dev deployment
|
|
246
|
+
(``"dev"``, ``"development"`` or ``"ds"``, in any case).
|
|
226
247
|
ValueError: If ``stage`` is not recognized. The legacy
|
|
227
248
|
``env_url`` silently returned ``None`` for unknown names;
|
|
228
249
|
we fail fast instead.
|
|
229
250
|
"""
|
|
251
|
+
# str(): User passes whatever it was given, None included.
|
|
252
|
+
if str(stage).strip().lower() in _RETIRED_STAGES:
|
|
253
|
+
raise RetiredStageError(_RETIRED_MESSAGE)
|
|
230
254
|
try:
|
|
231
255
|
api_url, frontend_url = cls._ENVIRONMENTS[stage]
|
|
232
256
|
except KeyError as error:
|
|
@@ -10,7 +10,7 @@ from .linking.response import (
|
|
|
10
10
|
from .api.experiment_status import experiment_status
|
|
11
11
|
from .client import TraceblocClient
|
|
12
12
|
from .console.logger import say, show_rich
|
|
13
|
-
from .config import TraceblocConfig
|
|
13
|
+
from .config import RetiredStageError, TraceblocConfig
|
|
14
14
|
from .auth.env_login import TOKEN_ENV_VAR, read_environment_login
|
|
15
15
|
from .exceptions import AuthenticationError
|
|
16
16
|
from .fetch import fetch_model, fetch_zoo_template
|
|
@@ -45,11 +45,11 @@ class User(UserUploadMethods, UserLinkMethods):
|
|
|
45
45
|
|
|
46
46
|
Args:
|
|
47
47
|
stage: Which tracebloc deployment to talk to — one of
|
|
48
|
-
``"local"``, ``"
|
|
49
|
-
``"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
Onboarding-only; defaults to production.
|
|
48
|
+
``"local"``, ``"stg"``/``"staging"``,
|
|
49
|
+
``"prod"``/``"production"``, or ``""`` (production). The
|
|
50
|
+
names come from the backend's stage contract
|
|
51
|
+
(``TraceblocConfig``); the retired ``"dev"`` raises
|
|
52
|
+
``RetiredStageError``. Onboarding-only; defaults to production.
|
|
53
53
|
username: Account email. Prompted for if omitted, unless a
|
|
54
54
|
``TRACEBLOC_TOKEN`` in the environment supersedes the prompt.
|
|
55
55
|
password: Account password. Prompted for if omitted.
|
|
@@ -71,6 +71,8 @@ class User(UserUploadMethods, UserLinkMethods):
|
|
|
71
71
|
self.__stage = stage
|
|
72
72
|
try:
|
|
73
73
|
self.__config = TraceblocConfig.for_environment(cast(str, stage))
|
|
74
|
+
except RetiredStageError:
|
|
75
|
+
raise # its own message says what to use instead
|
|
74
76
|
except ValueError:
|
|
75
77
|
# Fail clearly instead of the old misleading "the class does not
|
|
76
78
|
# take any arguments" message (it does) and instead of returning a
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|