Class: Xberg::TrocrBackendOptions

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTrocrBackendOptions

Returns a new instance of TrocrBackendOptions.

Parameters:

  • variant: (enum_CandleTrocrVariant)
  • device: (enum_CandleDevicePreference)
  • cache_dir: (String)
  • hf_revision: (String)


2664
# File 'sig/types.rbs', line 2664

def initialize: (?variant: enum_CandleTrocrVariant, ?device: enum_CandleDevicePreference, ?cache_dir: String, ?hf_revision: String) -> void

Instance Attribute Details

#cache_dirString? (readonly)

Returns the value of attribute cache_dir.

Returns:

  • (String, nil)


2661
2662
2663
# File 'sig/types.rbs', line 2661

def cache_dir
  @cache_dir
end

#deviceenum_CandleDevicePreference? (readonly)

Returns the value of attribute device.

Returns:

  • (enum_CandleDevicePreference, nil)


2660
2661
2662
# File 'sig/types.rbs', line 2660

def device
  @device
end

#hf_revisionString? (readonly)

Returns the value of attribute hf_revision.

Returns:

  • (String, nil)


2662
2663
2664
# File 'sig/types.rbs', line 2662

def hf_revision
  @hf_revision
end

#variantenum_CandleTrocrVariant? (readonly)

Returns the value of attribute variant.

Returns:

  • (enum_CandleTrocrVariant, nil)


2659
2660
2661
# File 'sig/types.rbs', line 2659

def variant
  @variant
end