Skip to content
Repo

DeepSeek_V4_1_Flash_LoRA_Recipe

from modal_dojo import DeepSeek_V4_1_Flash_LoRA_Recipe

Rank-32 attention/shared-expert LoRA on 32 H200 GPUs with a 32K window.

Covers all five attention projections and the shared expert’s gate/up/down projections supported by Miles #4205 and SGLang #45231. Routed experts, compressor, indexer and Engram remain frozen. Workload and reward are supplied by the training config; generation uses ordinary stopping.

cli_args(dataset: DatasetConfig | None = None, eval_dataset: DatasetConfig | None = None, dataset_path: str | None = None, eval_dataset_path: str | None = None, model: ModelConfig | None = None) -> list[str]
download_model(revision: str | None = None) -> None
effective_num_epoch() -> int | None
get_base_recipe(model_config: ModelConfig) -> MilesRecipe | None

Return the model preset for model_config.

Call this explicitly. TrainConfig uses the recipe it receives without applying a preset.

Returns

The model preset, or None when no preset is registered.

Raises

  • DojoConfigError: The recipe accepts only registered models and model_config is not registered.
gpu_allocation: GpuAllocation
post_process_data() -> None
post_process_model() -> None
total_nodes: int
train_async: bool
validate_model_parallelism(model: ModelConfig) -> None

Validate the model’s parallelism settings.