MCPcopy Create free account

hub / github.com/MakazhanAlpamys/Soup / types & classes

Types & classes3,423 in github.com/MakazhanAlpamys/Soup

↓ 446 callersClassSoupConfig
Root config for soup.yaml.
src/soup_cli/config/schema.py:3936
↓ 264 callersClassTrainingConfig
src/soup_cli/config/schema.py:901
↓ 94 callersClassDataConfig
src/soup_cli/config/schema.py:236
↓ 88 callersClassLoraConfig
src/soup_cli/config/schema.py:36
↓ 74 callersClassRegistryStore
SQLite-backed store for registry entries, artifacts, lineage, tags. Usable as a context manager: ``with RegistryStore() as store: ...`` guara
src/soup_cli/registry/store.py:194
↓ 62 callersClassExperimentTracker
SQLite-backed experiment tracker for training runs and evaluations.
src/soup_cli/experiment/tracker.py:116
↓ 54 callersClass_FakeTokenizer
Deterministic char-level fake tokenizer for doctor/lint unit tests. Renders ``<role>:content\\n`` per turn; each char maps to ``(ord(c) % 200
tests/test_v07127.py:45
↓ 45 callersClassLoopState
Immutable snapshot of a `soup loop` configuration + counters. The persisted file is JSON-formatted (despite the ``.yaml`` extension) so we ca
src/soup_cli/utils/loop_state.py:40
↓ 37 callersClassSFTTrainerWrapper
High-level wrapper that sets up model + tokenizer + trainer from SoupConfig.
src/soup_cli/trainer/sft.py:166
↓ 36 callersClassSoupTrainerCallback
Bridges HF Trainer events to Soup's Rich live display and experiment tracker.
src/soup_cli/monitoring/callback.py:22
↓ 31 callersClassMiniLLMConfig
Frozen MiniLLM configuration. Cross-validation: - ``pretrain_anchor_weight > 0`` requires ``pretrain_anchor_path`` to be set (otherwise
src/soup_cli/utils/minillm.py:125
↓ 30 callersClassCanaryPolicy
Frozen rollout policy: stable vs canary + traffic split + verdict.
src/soup_cli/utils/canary_router.py:26
↓ 29 callersClassDynamicCurriculumPolicy
Frozen config for the dynamic re-weighting policy. Attributes: num_buckets: Number of difficulty buckets (must match ``traini
src/soup_cli/utils/curriculum_dynamic.py:64
↓ 28 callersClassNamespacePinStore
SQLite wrapper. Single-connection, single-thread.
src/soup_cli/utils/namespace_pin.py:129
↓ 25 callersClassFailureScore
Per-mode score with an OK / MINOR / MAJOR verdict + evidence line.
src/soup_cli/utils/diagnose/report.py:61
↓ 24 callersClassCandidateBase
A candidate base model for a tunability probe. `params_b` is the parameter count in billions (e.g. ``0.6`` for 600M).
src/soup_cli/utils/tunability.py:59
↓ 24 callersClassCheckListTest
One CheckList test definition.
src/soup_cli/utils/checklist_dsl.py:110
↓ 24 callersClassTraceLogWriter
Thread-safe append-only JSONL writer with size-based rotation.
src/soup_cli/monitoring/trace_logger.py:72
↓ 23 callersClassWatchConfig
Daemon configuration knobs.
src/soup_cli/utils/loop_daemon.py:95
↓ 22 callersClass_NoopPlugin
tests/test_v0450.py:62
↓ 21 callersClassManifest
Top-level metadata for a ``.can`` file.
src/soup_cli/cans/schema.py:139
↓ 21 callersClassMitigationLogWriter
Thread-safe append-only JSONL log for the reward-hack controller. One JSON object per :meth:`record` call with shape ``{"ts": ..., "step": ..
src/soup_cli/utils/reward_hack_control.py:653
↓ 21 callersClassMultipackBatchSampler
Yield batches of indices packed via FFD into bins of ``batch_max_len``. Two modes: * ``real_batches=False`` — each yielded value is a flat l
src/soup_cli/utils/multipack_sampler.py:177
↓ 21 callersClassULDConfig
Frozen ULD configuration. - ``strategy``: one of :data:`SUPPORTED_ULD_STRATEGIES`. - ``student_vocab_size`` / ``teacher_vocab_size``: positiv
src/soup_cli/utils/uld.py:171
↓ 20 callersClassAirgapBundlePlan
Caller-supplied bundle inputs.
src/soup_cli/utils/airgap_bundle.py:48
↓ 20 callersClassProbeEntry
One probe entry in a pack.
src/soup_cli/utils/probe_pack.py:67
↓ 19 callersClassControllerState
Frozen controller state; evolve via :func:`dataclasses.replace`. - ``beta`` / ``kl_coef``: current ABSOLUTE coefficient applied (0.0 is the
src/soup_cli/utils/reward_hack_control.py:96
↓ 19 callersClassHardwareFitInput
Inputs needed to predict peak VRAM.
src/soup_cli/utils/hardware_fit.py:74
↓ 19 callersClassMcpToolError
A tool-level failure with a pre-sanitized, path-free message. The MCP SDK stringifies a raised exception verbatim into an ``isError`` result,
src/soup_cli/mcp_server/registry.py:43
↓ 19 callersClassMoleGatingConfig
Per-token gating network over N task LoRAs. Frozen dataclass — post-construction mutation raises ``FrozenInstanceError``.
src/soup_cli/utils/mole_routing.py:109
↓ 19 callersClassTrainEvent
One SSE-streamed training event.
src/soup_cli/utils/sse_train_stream.py:40
↓ 18 callersClassBisectPlan
An ordered history of checkpoint identifiers to bisect over. The order is "oldest first" — index 0 is the earliest checkpoint and the last en
src/soup_cli/utils/adapter_bisect.py:57
↓ 18 callersClassEditGovernor
Stateful per-base-model edit governor. Tracks ``edit_count`` and the last observed verdict so subsequent edits can be refused once the model
src/soup_cli/utils/edit_governor.py:225
↓ 18 callersClassGRPOTrainerWrapper
High-level wrapper for GRPO training from SoupConfig. GRPO generates multiple completions per prompt, scores them with a reward function, and
src/soup_cli/trainer/grpo.py:162
↓ 18 callersClassLisaPolicy
Immutable LISA schedule.
src/soup_cli/utils/lisa.py:52
↓ 18 callersClass_FakeJudge
Synthetic length-preferring Soup evaluator: prefers the LONGER response. Provides BOTH shapes so it drives either trl API: ``compare_pair`` (pair
tests/test_v07131.py:31
↓ 17 callersClassAnnexXIData
Per-run Annex XI/XII input.
src/soup_cli/utils/annex_xi.py:68
↓ 17 callersClassJudgeEvaluator
Configurable LLM-as-a-judge evaluator.
src/soup_cli/eval/judge.py:230
↓ 17 callersClassMsprtConfig
Parameters for an mSPRT pass.
src/soup_cli/utils/ab_test.py:96
↓ 17 callersClassPPOTrainerWrapper
High-level wrapper for PPO training from SoupConfig. PPO generates completions for each prompt, scores them with a reward model or reward fun
src/soup_cli/trainer/ppo.py:27
↓ 17 callersClassRLCheckpointConfig
Frozen RL-checkpoint config. - ``save_every_steps``: int >= 1; ``[1, 10_000_000]`` cap. - ``include_optimizer_state``: include AdamW / Lion s
src/soup_cli/utils/rl_checkpoint.py:105
↓ 17 callersClassToolOutputsBuffer
Thread-safe, capped ring of `ToolCallRecord` entries. Uses `collections.deque(maxlen=_MAX_RECORDS)` so the buffer drops the oldest record on
src/soup_cli/utils/tool_outputs.py:48
↓ 17 callersClassTunabilityResult
Outcome of one candidate's probe run.
src/soup_cli/utils/tunability.py:100
↓ 17 callersClassVectorBank
A multi-tenant LoRA storage bank. ``projection_seed`` is the deterministic seed for the shared random projection P. Each ``BankEntry`` carrie
src/soup_cli/utils/vector_bank.py:200
↓ 17 callersClass_FakeJudge
Mock judge that returns scripted weighted_score values.
tests/test_v0403_part_c.py:38
↓ 16 callersClassCheckListSpec
A full CheckList suite (one or more tests, unique names).
src/soup_cli/utils/checklist_dsl.py:139
↓ 16 callersClassDoctorCheck
One check's verdict + human-readable message/evidence.
src/soup_cli/utils/data_doctor.py:66
↓ 16 callersClassDynamicCurriculumCallback
HF TrainerCallback emitting dynamic curriculum bucket-weight history. BETA: the callback is live in v0.53.5 but the sampler-side consumer (li
src/soup_cli/monitoring/curriculum_callback.py:143
↓ 16 callersClassPairwiseJudgement
One SCOPE/CJE bidirectional pairwise judgement. The same (model_a, model_b) pair is judged twice with positions swapped: ``first_winner`` is
src/soup_cli/eval/calibrate.py:169
↓ 16 callersClassReLoRAPolicy
Frozen policy for the ReLoRA callback. Attributes: steps: fire every N global steps (must be > 0). warmup_ratio: fraction of tota
src/soup_cli/utils/relora.py:22
↓ 16 callersClass_FakeGPT2LM
tests/test_v07116.py:177
↓ 16 callersClass_FakeOutput
tests/test_issue332_vllm_prompt.py:188
↓ 16 callersClass_FakeTokenizer
Character-level fake tokenizer. Renders messages as ``<role>:<content>\\n`` and tokenizes each char to ``ord(c) % 256``. Two modes for ``appl
tests/test_assistant_mask.py:14
↓ 15 callersClassCandidate
One candidate quant configuration + its measured score/latency.
src/soup_cli/utils/auto_quant.py:37
↓ 15 callersClassDPOTrainerWrapper
High-level wrapper for DPO training from SoupConfig. DPO requires preference data with three fields: - prompt: the input prompt - chosen:
src/soup_cli/trainer/dpo.py:22
↓ 15 callersClassGateThresholds
Per-metric regression tolerance for the pre-push gate. Each tolerance is the *minimum acceptable* delta vs the baseline. Negative means a reg
src/soup_cli/utils/eval_gate_hook.py:48
↓ 15 callersClassItemDifficulty
Frozen per-item Rasch fit.
src/soup_cli/utils/irt.py:69
↓ 15 callersClassTournament
Live tournament tracker with Elo + win/loss bookkeeping.
src/soup_cli/eval/arena.py:85
↓ 14 callersClassBomEntry
Per-run BOM input. The shape mirrors what we can read from a v0.26.0 ``RegistryEntry``: ``base_model`` + ``base_sha`` + ``config_sha`` + ``da
src/soup_cli/utils/bom.py:70
↓ 14 callersClassEditGovernorStore
SQLite-backed persistence for per-base-model edit-governor state. Single-connection. The DB path must stay under ``$HOME`` / ``$CWD`` / ``$TM
src/soup_cli/utils/edit_governor.py:405
↓ 14 callersClassEnvEntry
One package -> version row in the lockfile.
src/soup_cli/utils/env_lock.py:88
↓ 14 callersClassEnvLock
Captured snapshot of the running environment.
src/soup_cli/utils/env_lock.py:107
↓ 14 callersClassEvalSuite
Parsed ``evals/gate.yaml``.
src/soup_cli/eval/gate.py:99
↓ 14 callersClassJudgeCalibrationReport
Calibration verdict for a pairwise judge. ``position_bias`` ∈ [-1, 1] (0 = no bias). ``conformal_threshold`` ∈ [0, 1] (production gate thresh
src/soup_cli/eval/calibrate.py:307
↓ 14 callersClassVerdict
One-line decision the user came for, plus its supporting evidence.
src/soup_cli/utils/advise.py:116
↓ 14 callersClass_SeqBuffer
Fake RLSignalBuffer returning a scripted sequence of snapshots.
tests/test_v07126.py:55
↓ 13 callersClassAdapterPR
An adapter PR — the triple {base SHA, dataset diff, adapter path} plus eval deltas + sample diffs for human review.
src/soup_cli/utils/adapter_pr.py:138
↓ 13 callersClassAuditEvent
One audit record. JSON-serialised one-per-line.
src/soup_cli/utils/audit_log.py:43
↓ 13 callersClassBehaviorScore
Single-battery score with OK/MINOR/MAJOR verdict.
src/soup_cli/utils/behavior_battery.py:159
↓ 13 callersClassCompileResult
The frozen result of running a compilation.
src/soup_cli/utils/prompt_compile.py:187
↓ 13 callersClassFakeModel
tests/test_v0534.py:397
↓ 13 callersClassGRPOStabilityCallback
HF TrainerCallback that wires v0.50.0 Part D stability knobs. Lazy-inherits ``transformers.TrainerCallback`` so the module is importable with
src/soup_cli/monitoring/grpo_stability_callback.py:165
↓ 13 callersClassGradAccumMonitor
Tracks VRAM pressure and recommends batch / accum adjustments.
src/soup_cli/utils/grad_accum.py:25
↓ 13 callersClassLisaCallback
HF ``TrainerCallback`` implementing LISA layer sampling. Subclasses the lazily-resolved ``TrainerCallback`` so it inherits the no-op default
src/soup_cli/utils/lisa.py:104
↓ 12 callersClassInterferenceCell
One pairwise interference measurement (target A, co-loaded B).
src/soup_cli/utils/interference.py:96
↓ 12 callersClassIterativeDPORound
Frozen per-round descriptor. - ``round_index``: 0-based, non-negative int (bool rejected). - ``prompts_path``: source prompts JSONL (sampled
src/soup_cli/utils/iterative_dpo.py:107
↓ 12 callersClassLintCheck
src/soup_cli/utils/data_lint.py:54
↓ 12 callersClassReLoRACallback
HF ``TrainerCallback`` that magnitude-prunes LoRA weights every N steps. Subclasses the lazily-resolved ``TrainerCallback`` so it inherits the no
src/soup_cli/utils/relora.py:122
↓ 12 callersClassRecipeNode
One node in the data-recipe DAG.
src/soup_cli/utils/recipe_dag.py:39
↓ 12 callersClassRewardHackMitigationCallback
Closed-loop reward-hacking mitigation HF TrainerCallback (v0.71.26). Reads the shared :class:`~soup_cli.utils.rl_signal_buffer.RLSignalBuffer`
src/soup_cli/utils/reward_hack_control.py:752
↓ 12 callersClassSleeperProbeResult
Defection probe verdict for one model evaluation.
src/soup_cli/utils/sleeper_probe.py:114
↓ 12 callersClassSoupLock
The on-disk lockfile shape. Stored as JSON at ``soup.lock`` (or operator-named path); committed to git so the team coordinates on "reproducib
src/soup_cli/utils/soup_lock.py:107
↓ 12 callersClassTrainEventBuffer
Thread-safe ring buffer of `TrainEvent` objects. `push` appends one event (dropping the oldest on overflow); `drain` returns all events queue
src/soup_cli/utils/train_event_buffer.py:21
↓ 12 callersClass_FakeTokenizer
Word-level fake tokenizer with offset-mapping support. Tokenises on non-whitespace runs; each token gets a deterministic id and its ``(start,
tests/test_v07110.py:23
↓ 11 callersClassEvalDelta
One metric: baseline -> candidate. The ``delta`` field is a computed property (post-init).
src/soup_cli/utils/adapter_pr.py:95
↓ 11 callersClassHFPushCallback
Real HF ``TrainerCallback`` auto-pusher. Subclasses the lazily-resolved ``TrainerCallback`` so it inherits the no-op default for every Traine
src/soup_cli/monitoring/hf_push.py:59
↓ 11 callersClassKTOTrainerWrapper
High-level wrapper for KTO training from SoupConfig. KTO uses unpaired preference data with three fields: - prompt: the input prompt - co
src/soup_cli/trainer/kto.py:23
↓ 11 callersClassMixCandidate
One proxy-run candidate: mixture weights + observed eval loss. Attributes: weights: Per-dataset weights summing to 1.0 ± 1e-6. ev
src/soup_cli/utils/data_mix.py:66
↓ 11 callersClassNamespacePin
One repo's trust-on-first-use fingerprint.
src/soup_cli/utils/namespace_pin.py:56
↓ 11 callersClassPretrainTrainerWrapper
High-level wrapper for continued pre-training from SoupConfig. Pre-training uses raw text data (no instruction/response structure). Each samp
src/soup_cli/trainer/pretrain.py:22
↓ 11 callersClassProbePack
A per-base bundle of probes.
src/soup_cli/utils/probe_pack.py:103
↓ 11 callersClassRLSignalBuffer
Thread-safe ring of the most-recently observed GRPO step signal. Stores the latest completions (as strings) and the per-reward-function rewar
src/soup_cli/utils/rl_signal_buffer.py:85
↓ 11 callersClass_State
tests/test_v07134.py:987
↓ 10 callersClassBankEntry
One per-user scaling vector in the bank.
src/soup_cli/utils/vector_bank.py:184
↓ 10 callersClassCheckpointTracker
Tracks checkpoint quality evaluations and determines the best one.
src/soup_cli/eval/checkpoint_intelligence.py:77
↓ 10 callersClassEmbeddingTrainerWrapper
High-level wrapper for embedding model fine-tuning from SoupConfig. Supports contrastive, triplet, and cosine loss for training sentence embe
src/soup_cli/trainer/embedding.py:22
↓ 10 callersClassEndpoint
Canonical endpoint representation across all three spec kinds.
src/soup_cli/utils/agent_forge.py:41
↓ 10 callersClassForgettingDetector
Run a mini benchmark periodically and report accuracy drops.
src/soup_cli/eval/forgetting.py:343
↓ 10 callersClassGraceCodebook
Discrete latent-space (key, value) store for sequential knowledge edits. Each edit appends a ``(key, value, label)`` triple. At decode time the
src/soup_cli/utils/grace_codebook.py:120
↓ 10 callersClassHumanEvalResults
Aggregated results from human evaluation.
src/soup_cli/eval/human.py:40
next →1–100 of 3,423, ranked by callers