Taykhoom commited on
Commit
a8c6b7e
·
verified ·
1 Parent(s): ed511d9

Upload folder using huggingface_hub

Browse files
configuration_helix_mrna.py CHANGED
@@ -16,6 +16,7 @@ class HelixmRNAConfig(PretrainedConfig):
16
  Number of processes to use for data processing.
17
  """
18
 
 
19
  model_name: Literal["helical-ai/Helix-mRNA"] = "helical-ai/Helix-mRNA"
20
 
21
  def __init__(
 
16
  Number of processes to use for data processing.
17
  """
18
 
19
+ model_type = "mamba2" # helical's model type is "mamba2" so this needs to be set
20
  model_name: Literal["helical-ai/Helix-mRNA"] = "helical-ai/Helix-mRNA"
21
 
22
  def __init__(
modeling_helix_mrna.py CHANGED
@@ -1459,6 +1459,7 @@ class HelixmRNAModel(HelixmRNAPreTrainedModel):
1459
  raise ValueError("Config must be provided")
1460
 
1461
  model_name = wrapper_config.model_name
 
1462
  cfg = HelixmRNAConfig.from_pretrained(model_name, **kwargs)
1463
  cfg.model_name = model_name
1464
 
 
1459
  raise ValueError("Config must be provided")
1460
 
1461
  model_name = wrapper_config.model_name
1462
+ kwargs.pop("trust_remote_code", None) # don't pass to non-Auto config class (HelixmRNAConfig)
1463
  cfg = HelixmRNAConfig.from_pretrained(model_name, **kwargs)
1464
  cfg.model_name = model_name
1465