[Neuron] Support inference with transformers-neuronx (#2569)
This commit is contained in:
@@ -795,6 +795,10 @@ class SamplerWithLoRA(BaseLayerWithLoRA):
|
||||
self.dtype = dtype
|
||||
self.device = device
|
||||
|
||||
@property
|
||||
def logits_as_hidden_states(self):
|
||||
return self.base_layer.logits_as_hidden_states
|
||||
|
||||
@property
|
||||
def vocab_size(self):
|
||||
return self.base_layer.vocab_size
|
||||
|
||||
Reference in New Issue
Block a user