Module: Transformers::DynamicModuleUtils
- Defined in:
- lib/transformers/dynamic_module_utils.rb
Class Method Summary collapse
-
.resolve_trust_remote_code(trust_remote_code, model_name, has_local_code, has_remote_code) ⇒ Object
TODO improve.
Class Method Details
.resolve_trust_remote_code(trust_remote_code, model_name, has_local_code, has_remote_code) ⇒ Object
TODO improve
18 19 20 21 22 23 |
# File 'lib/transformers/dynamic_module_utils.rb', line 18 def self.resolve_trust_remote_code(trust_remote_code, model_name, has_local_code, has_remote_code) if trust_remote_code raise Error, "trust_remote_code not supported" end trust_remote_code end |