Upload modeling_raon.py with huggingface_hub
Browse files- modeling_raon.py +1 -1
modeling_raon.py
CHANGED
|
@@ -9493,7 +9493,7 @@ class RaonProcessor:
|
|
| 9493 |
# Use AutoConfig to support both model_type aliases ("raon", "raon_duplex").
|
| 9494 |
from transformers import AutoConfig
|
| 9495 |
|
| 9496 |
-
self.config = AutoConfig.from_pretrained(config_path)
|
| 9497 |
|
| 9498 |
assert isinstance(self.tokenizer.pad_token, str), "Tokenizer pad_token must be a string."
|
| 9499 |
self.pad_token = self.tokenizer.pad_token
|
|
|
|
| 9493 |
# Use AutoConfig to support both model_type aliases ("raon", "raon_duplex").
|
| 9494 |
from transformers import AutoConfig
|
| 9495 |
|
| 9496 |
+
self.config = AutoConfig.from_pretrained(config_path, trust_remote_code=True)
|
| 9497 |
|
| 9498 |
assert isinstance(self.tokenizer.pad_token, str), "Tokenizer pad_token must be a string."
|
| 9499 |
self.pad_token = self.tokenizer.pad_token
|