* Copyright (c) 2026 Huawei Technologies Co., Ltd.
* openFuyao is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
package types
type ArtifactType string
const (
ArtifactTypeDirectory ArtifactType = "DIRECTORY"
ArtifactTypeFile ArtifactType = "FILE"
ArtifactTypeModelWeight ArtifactType = "MODEL_WEIGHT"
)
type WarmupTaskPhase string
const (
WarmupPhasePending WarmupTaskPhase = "Pending"
WarmupPhaseRunning WarmupTaskPhase = "Running"
WarmupPhaseSucceeded WarmupTaskPhase = "Succeeded"
WarmupPhaseFailed WarmupTaskPhase = "Failed"
WarmupPhaseCanceled WarmupTaskPhase = "Canceled"
)
type DistributionStrategy string
const (
DistributionSingleSourceFanout DistributionStrategy = "SINGLE_SOURCE_FANOUT"
DistributionNodeLevelAssignment DistributionStrategy = "NODE_LEVEL_ASSIGNMENT"
DistributionStripedMultiSource DistributionStrategy = "STRIPED_MULTI_SOURCE"
DistributionHybrid DistributionStrategy = "HYBRID"
)
type TransferMode string
const (
TransferModeSingleSourceDirect TransferMode = "SINGLE_SOURCE_DIRECT"
TransferModeDirectStriped TransferMode = "DIRECT_STRIPED"
TransferModePartialPullAllGather TransferMode = "PARTIAL_PULL_ALLGATHER"
)
type CollectiveMode string
const (
CollectiveModeNone CollectiveMode = "NONE"
CollectiveModeRing CollectiveMode = "RING"
)
type TransportPath string
const (
TransportPathRDMA TransportPath = "RDMA"
TransportPathTCPFallback TransportPath = "TCP_FALLBACK"
TransportPathMixed TransportPath = "MIXED"
)
type ArtifactFileKind string
const (
ArtifactFileKindSafeTensors ArtifactFileKind = "SAFETENSORS"
ArtifactFileKindJSON ArtifactFileKind = "JSON"
ArtifactFileKindTokenizer ArtifactFileKind = "TOKENIZER"
ArtifactFileKindAuxiliary ArtifactFileKind = "AUXILIARY"
)