Record Class MiniMax.ClusterSpec
java.lang.Object
java.lang.Record
smile.llm.model.minimax.MiniMax.ClusterSpec
- Record Components:
worldSize- expert-parallel ranks of the whole model.rankOffset- world rank of this process's first rank.uniqueId- the NCCL unique id shared by every process.
- Enclosing class:
MiniMax
public static record MiniMax.ClusterSpec(int worldSize, int rankOffset, byte[] uniqueId)
extends Record
Placement of this process's ranks in a multi-node model.
-
Constructor Summary
ConstructorsConstructorDescriptionClusterSpec(int worldSize, int rankOffset, byte[] uniqueId) Creates an instance of aClusterSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of therankOffsetrecord component.final StringtoString()Returns a string representation of this record class.byte[]uniqueId()Returns the value of theuniqueIdrecord component.intReturns the value of theworldSizerecord component.
-
Constructor Details
-
ClusterSpec
public ClusterSpec(int worldSize, int rankOffset, byte[] uniqueId) Creates an instance of aClusterSpecrecord class.- Parameters:
worldSize- the value for theworldSizerecord componentrankOffset- the value for therankOffsetrecord componentuniqueId- the value for theuniqueIdrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
worldSize
-
rankOffset
public int rankOffset()Returns the value of therankOffsetrecord component.- Returns:
- the value of the
rankOffsetrecord component
-
uniqueId
-