Record Class ClusterFollower.Welcome
java.lang.Object
java.lang.Record
smile.llm.cluster.ClusterFollower.Welcome
- Record Components:
worldSize- ranks of the whole communicator.rankOffset- world rank of this follower's first rank.uniqueId- the NCCL unique id (128 bytes).params- settings every process must share.
- Enclosing class:
ClusterFollower
-
Constructor Summary
Constructors -
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.params()Returns the value of theparamsrecord component.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
-
Welcome
Creates an instance of aWelcomerecord class.- Parameters:
worldSize- the value for theworldSizerecord componentrankOffset- the value for therankOffsetrecord componentuniqueId- the value for theuniqueIdrecord componentparams- the value for theparamsrecord 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
-
params
-