wisent 0.5.8__tar.gz → 0.5.9__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.
Potentially problematic release.
This version of wisent might be problematic. Click here for more details.
- {wisent-0.5.8 → wisent-0.5.9}/PKG-INFO +1 -1
- wisent-0.5.9/wisent/__init__.py +1 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/models/wisent_model.py +25 -10
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/multi_steering.py +10 -4
- {wisent-0.5.8 → wisent-0.5.9}/wisent.egg-info/PKG-INFO +1 -1
- wisent-0.5.8/wisent/__init__.py +0 -1
- {wisent-0.5.8 → wisent-0.5.9}/LICENSE +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/README.md +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/pyproject.toml +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/setup.cfg +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/setup.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/metrics/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/metrics/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/metrics/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/metrics/evaluator.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/metrics/passk.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/output_sanitizer/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/output_sanitizer/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/output_sanitizer/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/output_sanitizer/cpp_sanitizer.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/output_sanitizer/java_sanitizer.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/output_sanitizer/python_sanitizer.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/output_sanitizer/utils.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/providers/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/providers/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/providers/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/providers/livecodebench/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/providers/livecodebench/provider.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/safe_docker/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/safe_docker/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/safe_docker/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/safe_docker/core/runtime.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/safe_docker/entrypoint.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/benchmarks/coding/safe_docker/recipes.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/classifiers/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/classifiers/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/classifiers/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/classifiers/models/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/classifiers/models/logistic.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/classifiers/models/mlp.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/classifiers/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/classifiers/classifier_rotator.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/cli_logger.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/data_loaders/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/data_loaders/data_loader_rotator.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/evaluators/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/evaluators/evaluator_rotator.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/steering_methods/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/steering_methods/steering_rotator.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/wisent_cli/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/wisent_cli/commands/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/wisent_cli/commands/help_cmd.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/wisent_cli/commands/listing.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/wisent_cli/commands/train_cmd.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/wisent_cli/main.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/wisent_cli/shell.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/wisent_cli/ui.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/wisent_cli/util/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/wisent_cli/util/aggregations.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/wisent_cli/util/parsing.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/cli/wisent_cli/version.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/activations/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/activations/activations_collector.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/activations/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/activations/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/budget.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/device_benchmarks.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/diagnose/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/diagnose/agent_classifier_decision.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/diagnose/classifier_marketplace.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/diagnose/create_classifier.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/diagnose/response_diagnostics.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/diagnose/select_classifiers.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/diagnose/synthetic_classifier_option.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/diagnose/tasks/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/diagnose/tasks/task_manager.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/diagnose/tasks/task_relevance.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/diagnose/tasks/task_selector.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/diagnose/test_synthetic_classifier.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/diagnose.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/steer.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/agent/timeout.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/autonomous_agent.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/bigcode_integration.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/core/buliders.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/core/pair.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/core/response.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/core/serialization.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/core/set.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/diagnostics/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/diagnostics/activations.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/diagnostics/base.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/diagnostics/control_vectors.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/diagnostics/coverage.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/diagnostics/divergence.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/diagnostics/duplicates.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/lm_eval_pairs/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/lm_eval_pairs/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/lm_eval_pairs/lm_extractor_manifest.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/lm_eval_pairs/lm_extractor_registry.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_extractors/winogrande.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/lm_eval_pairs/lm_task_pairs_generation.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/data_loaders/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/data_loaders/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/data_loaders/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/data_loaders/loaders/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/data_loaders/loaders/custom.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/data_loaders/loaders/lm_loader.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/detection_handling.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/download_full_benchmarks.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/evaluators/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/evaluators/oracles/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/evaluators/oracles/interactive.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/evaluators/oracles/nlp_evaluator.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/evaluators/oracles/user_specified.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/hyperparameter_optimizer.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/lm_eval_harness_ground_truth.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/log_likelihoods_evaluator.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/managed_cached_benchmarks.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/mixed_benchmark_sampler.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/model_config_manager.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/model_persistence.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/models/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/models/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/models/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/optuna/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/optuna/classifier/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/optuna/classifier/activation_generator.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/optuna/classifier/classifier_cache.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/optuna/classifier/optuna_classifier_optimizer.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/optuna/steering/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/optuna/steering/bigcode_evaluator_wrapper.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/optuna/steering/data_utils.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/optuna/steering/metrics.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/optuna/steering/optuna_pipeline.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/optuna/steering/steering_optimization.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/parser.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/prompts/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/prompts/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/prompts/core/atom.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/prompts/core/prompt_formater.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/prompts/prompt_stratiegies/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/prompts/prompt_stratiegies/direct_completion.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/prompts/prompt_stratiegies/instruction_following.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/prompts/prompt_stratiegies/multiple_choice.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/prompts/prompt_stratiegies/role_playing.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/representation.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/sample_size_optimizer.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/sample_size_optimizer_v2.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/save_results.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/steering.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/steering_method.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/steering_methods/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/steering_methods/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/steering_methods/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/steering_methods/methods/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/steering_methods/methods/caa.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/steering_optimizer.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/task_interface.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/task_selector.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/tasks/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/tasks/aime_task.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/tasks/file_task.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/tasks/hle_task.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/tasks/hmmt_task.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/tasks/livecodebench_task.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/tasks/livemathbench_task.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/tasks/lm_eval_task.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/tasks/math500_task.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/tasks/polymath_task.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/tasks/supergpqa_task.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/time_estimator.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/timing_calibration.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/tracking/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/tracking/latency.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/tracking/memory.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/trainers/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/trainers/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/trainers/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/trainers/steering_trainer.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/user_model_config.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/utils/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/core/utils/device.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/opti/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/opti/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/opti/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/opti/methods/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/opti/methods/opti_classificator.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/opti/methods/opti_steering.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/cleaners/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/cleaners/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/cleaners/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/cleaners/deduper_cleaner.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/cleaners/methods/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/cleaners/methods/base_dedupers.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/cleaners/methods/base_refusalers.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/cleaners/methods/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/cleaners/methods/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/cleaners/pairs_cleaner.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/cleaners/refusaler_cleaner.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/db_instructions/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/db_instructions/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/db_instructions/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/db_instructions/mini_dp.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/generators/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/generators/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/generators/core/atoms.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/generators/diversities/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/generators/diversities/core/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/generators/diversities/core/core.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/generators/diversities/methods/__init__.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/generators/diversities/methods/fast_diversity.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/generators/pairs_generator.py +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent.egg-info/SOURCES.txt +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent.egg-info/dependency_links.txt +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent.egg-info/requires.txt +0 -0
- {wisent-0.5.8 → wisent-0.5.9}/wisent.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.5.9"
|
|
@@ -258,6 +258,7 @@ class WisentModel:
|
|
|
258
258
|
self,
|
|
259
259
|
message: list[ChatMessage],
|
|
260
260
|
add_generation_prompt: bool = True,
|
|
261
|
+
enable_thinking: bool = True,
|
|
261
262
|
) -> dict[str, torch.Tensor]:
|
|
262
263
|
"""
|
|
263
264
|
Encode a single input in chat format.
|
|
@@ -267,6 +268,8 @@ class WisentModel:
|
|
|
267
268
|
list of {'role': str, 'content': str} dicts (chat messages).
|
|
268
269
|
add_generation_prompt:
|
|
269
270
|
If True, append the model's generation prompt at the end.
|
|
271
|
+
enable_thinking:
|
|
272
|
+
If False, disable thinking/reasoning mode (prevents <think> tags for supported models like Qwen).
|
|
270
273
|
|
|
271
274
|
returns:
|
|
272
275
|
dict with 'input_ids' and 'attention_mask' tensors.
|
|
@@ -279,10 +282,10 @@ class WisentModel:
|
|
|
279
282
|
>>> wm._encode_one(msgs, add_generation_prompt=True)
|
|
280
283
|
{"input_ids": tensor([[...]]), "attention_mask": tensor([[...]])}
|
|
281
284
|
"""
|
|
282
|
-
|
|
285
|
+
|
|
283
286
|
ids = self.tokenizer.apply_chat_template(
|
|
284
|
-
message, tokenize=True, add_generation_prompt=add_generation_prompt, return_tensors="pt"
|
|
285
|
-
)[0]
|
|
287
|
+
message, tokenize=True, add_generation_prompt=add_generation_prompt, enable_thinking=enable_thinking, return_tensors="pt"
|
|
288
|
+
)[0]
|
|
286
289
|
return {
|
|
287
290
|
"input_ids": ids,
|
|
288
291
|
"attention_mask": torch.ones_like(ids),
|
|
@@ -292,6 +295,7 @@ class WisentModel:
|
|
|
292
295
|
self,
|
|
293
296
|
inputs: list[list[ChatMessage]],
|
|
294
297
|
add_generation_prompt: bool = True,
|
|
298
|
+
enable_thinking: bool = True,
|
|
295
299
|
) -> dict[str, torch.Tensor]:
|
|
296
300
|
"""
|
|
297
301
|
Batch-encode a list of chat messages.
|
|
@@ -301,7 +305,9 @@ class WisentModel:
|
|
|
301
305
|
list of chat messages (each a list of {'role','content'} dicts).
|
|
302
306
|
add_generation_prompt:
|
|
303
307
|
If True, append the model's generation prompt at the end of each.
|
|
304
|
-
|
|
308
|
+
enable_thinking:
|
|
309
|
+
If False, disable thinking/reasoning mode (prevents <think> tags for supported models like Qwen).
|
|
310
|
+
|
|
305
311
|
returns:
|
|
306
312
|
dict with batched 'input_ids' and 'attention_mask' tensors.
|
|
307
313
|
|
|
@@ -316,10 +322,10 @@ class WisentModel:
|
|
|
316
322
|
>>> wm._batch_encode([msgs1, msgs2], add_generation_prompt=True)
|
|
317
323
|
{"input_ids": tensor([[...],[...]]), "attention_mask": tensor([[...],[...]])}
|
|
318
324
|
"""
|
|
319
|
-
|
|
325
|
+
|
|
320
326
|
singles = []
|
|
321
327
|
for item in inputs:
|
|
322
|
-
singles.append(self._encode_one(item, add_generation_prompt=add_generation_prompt))
|
|
328
|
+
singles.append(self._encode_one(item, add_generation_prompt=add_generation_prompt, enable_thinking=enable_thinking))
|
|
323
329
|
|
|
324
330
|
batch = self.tokenizer.pad(singles, padding=True, return_tensors="pt")
|
|
325
331
|
|
|
@@ -338,6 +344,7 @@ class WisentModel:
|
|
|
338
344
|
num_return_sequences: int = 1,
|
|
339
345
|
use_steering: bool = False,
|
|
340
346
|
steering_plan: SteeringPlan | None = None,
|
|
347
|
+
enable_thinking: bool = True,
|
|
341
348
|
**gen_kwargs: Any,
|
|
342
349
|
) -> list[str]:
|
|
343
350
|
"""
|
|
@@ -361,6 +368,8 @@ class WisentModel:
|
|
|
361
368
|
steering_plan:
|
|
362
369
|
optional SteeringPlan to use for this call only (overrides internal plan).
|
|
363
370
|
If None, uses the internal plan.
|
|
371
|
+
enable_thinking:
|
|
372
|
+
If False, disable thinking/reasoning mode (prevents <think> tags for supported models like Qwen).
|
|
364
373
|
**gen_kwargs:
|
|
365
374
|
additional kwargs passed to 'model.generate()'.
|
|
366
375
|
|
|
@@ -439,7 +448,7 @@ class WisentModel:
|
|
|
439
448
|
if use_steering:
|
|
440
449
|
self.apply_steering(steering_plan)
|
|
441
450
|
|
|
442
|
-
batch = self._batch_encode(inputs, add_generation_prompt=True)
|
|
451
|
+
batch = self._batch_encode(inputs, add_generation_prompt=True, enable_thinking=enable_thinking)
|
|
443
452
|
|
|
444
453
|
gen_out = self.hf_model.generate(
|
|
445
454
|
**batch,
|
|
@@ -472,6 +481,7 @@ class WisentModel:
|
|
|
472
481
|
collect_topk: int = 5,
|
|
473
482
|
use_steering: bool = False,
|
|
474
483
|
steering_plan: SteeringPlan | None = None,
|
|
484
|
+
enable_thinking: bool = True,
|
|
475
485
|
**gen_kwargs: Any,
|
|
476
486
|
) -> tuple[list[str], list[GenerationStats]]:
|
|
477
487
|
"""
|
|
@@ -486,7 +496,7 @@ class WisentModel:
|
|
|
486
496
|
temperature:
|
|
487
497
|
sampling temperature (0 = greedy, 1 = default sampling).
|
|
488
498
|
top_p:
|
|
489
|
-
nucleus sampling probability (0 = no filtering, 1 = full filtering).
|
|
499
|
+
nucleus sampling probability (0 = no filtering, 1 = full filtering).
|
|
490
500
|
do_sample:
|
|
491
501
|
if False, uses greedy decoding (top_k=1).
|
|
492
502
|
num_return_sequences:
|
|
@@ -498,6 +508,8 @@ class WisentModel:
|
|
|
498
508
|
steering_plan:
|
|
499
509
|
optional SteeringPlan to use for this call only (overrides internal plan).
|
|
500
510
|
If None, uses the internal plan.
|
|
511
|
+
enable_thinking:
|
|
512
|
+
If False, disable thinking/reasoning mode (prevents <think> tags for supported models like Qwen).
|
|
501
513
|
**gen_kwargs:
|
|
502
514
|
additional kwargs passed to 'model.generate()'.
|
|
503
515
|
|
|
@@ -537,7 +549,7 @@ class WisentModel:
|
|
|
537
549
|
if use_steering:
|
|
538
550
|
self.apply_steering(steering_plan)
|
|
539
551
|
|
|
540
|
-
batch = self._batch_encode(inputs, add_generation_prompt=True)
|
|
552
|
+
batch = self._batch_encode(inputs, add_generation_prompt=True, enable_thinking=enable_thinking)
|
|
541
553
|
|
|
542
554
|
out = self.hf_model.generate(
|
|
543
555
|
**batch,
|
|
@@ -609,6 +621,7 @@ class WisentModel:
|
|
|
609
621
|
steering_plan: SteeringPlan | None = None,
|
|
610
622
|
skip_prompt: bool = True,
|
|
611
623
|
skip_special_tokens: bool = True,
|
|
624
|
+
enable_thinking: bool = True,
|
|
612
625
|
**gen_kwargs: Any,
|
|
613
626
|
) -> Iterable[str]:
|
|
614
627
|
"""
|
|
@@ -635,6 +648,8 @@ class WisentModel:
|
|
|
635
648
|
if True, the yielded text excludes the input prompt.
|
|
636
649
|
skip_special_tokens:
|
|
637
650
|
if True, special tokens are removed from the yielded text.
|
|
651
|
+
enable_thinking:
|
|
652
|
+
If False, disable thinking/reasoning mode (prevents <think> tags for supported models like Qwen).
|
|
638
653
|
**gen_kwargs:
|
|
639
654
|
additional kwargs passed to 'model.generate()'.
|
|
640
655
|
|
|
@@ -649,7 +664,7 @@ class WisentModel:
|
|
|
649
664
|
if use_steering:
|
|
650
665
|
self.apply_steering(steering_plan)
|
|
651
666
|
|
|
652
|
-
batch = self._batch_encode(inputs, add_generation_prompt=True)
|
|
667
|
+
batch = self._batch_encode(inputs, add_generation_prompt=True, enable_thinking=enable_thinking)
|
|
653
668
|
|
|
654
669
|
streamer = TextIteratorStreamer(
|
|
655
670
|
self.tokenizer,
|
|
@@ -165,7 +165,8 @@ class MultiSteering:
|
|
|
165
165
|
prompt: str,
|
|
166
166
|
max_new_tokens: int = 100,
|
|
167
167
|
temperature: float = 0.7,
|
|
168
|
-
top_p: float = 0.9
|
|
168
|
+
top_p: float = 0.9,
|
|
169
|
+
enable_thinking: bool = True
|
|
169
170
|
) -> Iterable[str]:
|
|
170
171
|
"""Apply the combined steering vector to generate text with streaming.
|
|
171
172
|
|
|
@@ -175,6 +176,7 @@ class MultiSteering:
|
|
|
175
176
|
max_new_tokens: Maximum tokens to generate
|
|
176
177
|
temperature: Sampling temperature
|
|
177
178
|
top_p: Top-p sampling parameter
|
|
179
|
+
enable_thinking: If False, disable thinking/reasoning mode (prevents <think> tags for supported models like Qwen)
|
|
178
180
|
|
|
179
181
|
Yields:
|
|
180
182
|
Generated text chunks
|
|
@@ -213,7 +215,8 @@ class MultiSteering:
|
|
|
213
215
|
use_steering=True,
|
|
214
216
|
steering_plan=steering_plan,
|
|
215
217
|
skip_prompt=True,
|
|
216
|
-
skip_special_tokens=True
|
|
218
|
+
skip_special_tokens=True,
|
|
219
|
+
enable_thinking=enable_thinking
|
|
217
220
|
)
|
|
218
221
|
|
|
219
222
|
except Exception as e:
|
|
@@ -227,7 +230,8 @@ class MultiSteering:
|
|
|
227
230
|
prompt: str,
|
|
228
231
|
max_new_tokens: int = 100,
|
|
229
232
|
temperature: float = 0.7,
|
|
230
|
-
top_p: float = 0.9
|
|
233
|
+
top_p: float = 0.9,
|
|
234
|
+
enable_thinking: bool = True
|
|
231
235
|
) -> str:
|
|
232
236
|
"""Apply the combined steering vector to generate text (non-streaming).
|
|
233
237
|
|
|
@@ -237,6 +241,7 @@ class MultiSteering:
|
|
|
237
241
|
max_new_tokens: Maximum tokens to generate
|
|
238
242
|
temperature: Sampling temperature
|
|
239
243
|
top_p: Top-p sampling parameter
|
|
244
|
+
enable_thinking: If False, disable thinking/reasoning mode (prevents <think> tags for supported models like Qwen)
|
|
240
245
|
|
|
241
246
|
Returns:
|
|
242
247
|
Generated text
|
|
@@ -273,7 +278,8 @@ class MultiSteering:
|
|
|
273
278
|
temperature=temperature,
|
|
274
279
|
top_p=top_p,
|
|
275
280
|
use_steering=True,
|
|
276
|
-
steering_plan=steering_plan
|
|
281
|
+
steering_plan=steering_plan,
|
|
282
|
+
enable_thinking=enable_thinking
|
|
277
283
|
)
|
|
278
284
|
|
|
279
285
|
return outputs[0] if outputs else ""
|
wisent-0.5.8/wisent/__init__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.5.8"
|
|
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
|
{wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/lm_eval_pairs/lm_extractor_manifest.py
RENAMED
|
File without changes
|
{wisent-0.5.8 → wisent-0.5.9}/wisent/core/contrastive_pairs/lm_eval_pairs/lm_extractor_registry.py
RENAMED
|
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
|
{wisent-0.5.8 → wisent-0.5.9}/wisent/core/prompts/prompt_stratiegies/instruction_following.py
RENAMED
|
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
|
{wisent-0.5.8 → wisent-0.5.9}/wisent/synthetic/generators/diversities/methods/fast_diversity.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|