Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb

Overview

Draft model speculation works by using the smaller model to generate candidate tokens for speculative decoding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation

Returns a new instance of GoogleCloudAiplatformV1SpeculativeDecodingSpecDraftModelSpeculation.



33824
33825
33826
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33824

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#draft_modelString

Required. The resource name of the draft model. Corresponds to the JSON property draftModel

Returns:

  • (String)


33822
33823
33824
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33822

def draft_model
  @draft_model
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



33829
33830
33831
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 33829

def update!(**args)
  @draft_model = args[:draft_model] if args.key?(:draft_model)
end