1
0
Fork 0
mirror of https://github.com/p-e-w/heretic.git synced 2026-12-03 18:42:57 +07:00

[GH-ISSUE #100] Add compatibility with Olmo 3 (3.1) and Bolmo #55

Closed
opened 2026-11-01 04:17:03 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @Filippide8864 on GitHub (Jan 4, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/100

Good morning. I would like to decensor the AllenAI Bolmo models based on the Olmo models, but I'm not sure if this is possible since they are very specific models.

Originally created by @Filippide8864 on GitHub (Jan 4, 2026). Original GitHub issue: https://github.com/p-e-w/heretic/issues/100 Good morning. I would like to decensor the AllenAI Bolmo models based on the Olmo models, but I'm not sure if this is possible since they are very specific models.
Author
Owner

@Vinay-Umrethe commented on GitHub (Jan 5, 2026):

both of them should work, as HF suggests they use AutoModelForCausalLM

<!-- gh-comment-id:3710139154 --> @Vinay-Umrethe commented on GitHub (Jan 5, 2026): both of them should work, as HF suggests they use `AutoModelForCausalLM`
Author
Owner

@Filippide8864 commented on GitHub (Jan 8, 2026):

On the Kaggle notebook, it asks me if I want to execute the custom code, but I'm unable to choose it from the notebook. I thought this was because it doesn't support Bolmo.

<!-- gh-comment-id:3724293690 --> @Filippide8864 commented on GitHub (Jan 8, 2026): On the Kaggle notebook, it asks me if I want to execute the custom code, but I'm unable to choose it from the notebook. I thought this was because it doesn't support Bolmo.
Author
Owner

@Vinay-Umrethe commented on GitHub (Jan 8, 2026):

you might need to use this arg example:

!heretic --model ... --trust_remote_code

did it worked?

<!-- gh-comment-id:3724481599 --> @Vinay-Umrethe commented on GitHub (Jan 8, 2026): you might need to use this arg example: ```bash !heretic --model ... --trust_remote_code ``` did it worked?
Author
Owner

@Filippide8864 commented on GitHub (Jan 12, 2026):

Nope sorry. Here is the output:

Loading model allenai/Bolmo-1B...
tokenizer_config.json: 100%|███████████████████| 728/728 [00:00<00:00, 4.18MB/s]
tokenization_bolmo.py: 16.4kB [00:00, 4.64MB/s]
special_tokens_map.json: 100%|████████████████| 75.0/75.0 [00:00<00:00, 447kB/s]
tokenizer_config.json: 4.51kB [00:00, 15.1MB/s]
vocab.json: 1.61MB [00:00, 5.92MB/s]
merges.txt: 917kB [00:00, 111MB/s]
tokenizer.json: 4.24MB [00:00, 46.3MB/s]
special_tokens_map.json: 100%|█████████████████| 581/581 [00:00<00:00, 3.10MB/s]
config.json: 1.80kB [00:00, 8.57MB/s]
configuration_bolmo.py: 12.3kB [00:00, 42.2MB/s]
modeling_bolmo.py: 56.2kB [00:00, 102MB/s]
utils_bolmo.py: 4.06kB [00:00, 14.2MB/s]
2026-01-12 16:56:56.453739: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:467] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1768237016.774471     109 cuda_dnn.cc:8579] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
E0000 00:00:1768237016.864318     109 cuda_blas.cc:1407] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
W0000 00:00:1768237017.679744     109 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1768237017.679796     109 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1768237017.679800     109 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1768237017.679804     109 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip
install xlstm`.)
* Trying dtype float16... Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip
install xlstm`.)
* Trying dtype bfloat16... Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip
install xlstm`.)
* Trying dtype float32... Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip
install xlstm`.)
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /usr/local/bin/heretic:8 in <module>                                         │
│                                                                              │
│   5 from heretic.main import main                                            │
│   6 if __name__ == '__main__':                                               │
│   7 │   sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])     │
│ ❱ 8 │   sys.exit(main())                                                     │
│   9                                                                          │
│                                                                              │
│ /usr/local/lib/python3.12/dist-packages/heretic/main.py:576 in main          │
│                                                                              │
│   573 │   install()                                                          │
│   574 │                                                                      │
│   575 │   try:                                                               │
│ ❱ 576 │   │   run()                                                          │
│   577 │   except BaseException as error:                                     │
│   578 │   │   # Transformers appears to handle KeyboardInterrupt (or BaseExc │
│   579 │   │   # internally in some places, which can re-raise a different er │
│                                                                              │
│ /usr/local/lib/python3.12/dist-packages/heretic/main.py:133 in run           │
│                                                                              │
│   130 │   # Silence the warning about multivariate TPE being experimental.   │
│   131 │   warnings.filterwarnings("ignore", category=ExperimentalWarning)    │
│   132 │                                                                      │
│ ❱ 133 │   model = Model(settings)                                            │
│   134 │                                                                      │
│   135 │   print()                                                            │
│   136 │   print(f"Loading good prompts from [bold]{settings.good_prompts.dat │
│                                                                              │
│ /usr/local/lib/python3.12/dist-packages/heretic/model.py:92 in __init__      │
│                                                                              │
│    89 │   │   │   break                                                      │
│    90 │   │                                                                  │
│    91 │   │   if self.model is None:                                         │
│ ❱  92 │   │   │   raise Exception("Failed to load model with all configured  │
│    93 │   │                                                                  │
│    94 │   │   print(f"* Transformer model with [bold]{len(self.get_layers()) │
│    95 │   │   print("* Abliterable components:")                             │
╰──────────────────────────────────────────────────────────────────────────────╯
Exception: Failed to load model with all configured dtypes.
<!-- gh-comment-id:3739547972 --> @Filippide8864 commented on GitHub (Jan 12, 2026): Nope sorry. Here is the output: ``` Loading model allenai/Bolmo-1B... tokenizer_config.json: 100%|███████████████████| 728/728 [00:00<00:00, 4.18MB/s] tokenization_bolmo.py: 16.4kB [00:00, 4.64MB/s] special_tokens_map.json: 100%|████████████████| 75.0/75.0 [00:00<00:00, 447kB/s] tokenizer_config.json: 4.51kB [00:00, 15.1MB/s] vocab.json: 1.61MB [00:00, 5.92MB/s] merges.txt: 917kB [00:00, 111MB/s] tokenizer.json: 4.24MB [00:00, 46.3MB/s] special_tokens_map.json: 100%|█████████████████| 581/581 [00:00<00:00, 3.10MB/s] config.json: 1.80kB [00:00, 8.57MB/s] configuration_bolmo.py: 12.3kB [00:00, 42.2MB/s] modeling_bolmo.py: 56.2kB [00:00, 102MB/s] utils_bolmo.py: 4.06kB [00:00, 14.2MB/s] 2026-01-12 16:56:56.453739: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:467] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered WARNING: All log messages before absl::InitializeLog() is called are written to STDERR E0000 00:00:1768237016.774471 109 cuda_dnn.cc:8579] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered E0000 00:00:1768237016.864318 109 cuda_blas.cc:1407] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered W0000 00:00:1768237017.679744 109 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once. W0000 00:00:1768237017.679796 109 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once. W0000 00:00:1768237017.679800 109 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once. W0000 00:00:1768237017.679804 109 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once. Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip install xlstm`.) * Trying dtype float16... Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip install xlstm`.) * Trying dtype bfloat16... Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip install xlstm`.) * Trying dtype float32... Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip install xlstm`.) ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /usr/local/bin/heretic:8 in <module> │ │ │ │ 5 from heretic.main import main │ │ 6 if __name__ == '__main__': │ │ 7 │ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) │ │ ❱ 8 │ sys.exit(main()) │ │ 9 │ │ │ │ /usr/local/lib/python3.12/dist-packages/heretic/main.py:576 in main │ │ │ │ 573 │ install() │ │ 574 │ │ │ 575 │ try: │ │ ❱ 576 │ │ run() │ │ 577 │ except BaseException as error: │ │ 578 │ │ # Transformers appears to handle KeyboardInterrupt (or BaseExc │ │ 579 │ │ # internally in some places, which can re-raise a different er │ │ │ │ /usr/local/lib/python3.12/dist-packages/heretic/main.py:133 in run │ │ │ │ 130 │ # Silence the warning about multivariate TPE being experimental. │ │ 131 │ warnings.filterwarnings("ignore", category=ExperimentalWarning) │ │ 132 │ │ │ ❱ 133 │ model = Model(settings) │ │ 134 │ │ │ 135 │ print() │ │ 136 │ print(f"Loading good prompts from [bold]{settings.good_prompts.dat │ │ │ │ /usr/local/lib/python3.12/dist-packages/heretic/model.py:92 in __init__ │ │ │ │ 89 │ │ │ break │ │ 90 │ │ │ │ 91 │ │ if self.model is None: │ │ ❱ 92 │ │ │ raise Exception("Failed to load model with all configured │ │ 93 │ │ │ │ 94 │ │ print(f"* Transformer model with [bold]{len(self.get_layers()) │ │ 95 │ │ print("* Abliterable components:") │ ╰──────────────────────────────────────────────────────────────────────────────╯ Exception: Failed to load model with all configured dtypes. ```
Author
Owner

@Vinay-Umrethe commented on GitHub (Jan 12, 2026):

it tried all dtypes :

Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip
install xlstm`.)
* Trying dtype float16... Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip
install xlstm`.)
* Trying dtype bfloat16... Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip
install xlstm`.)
* Trying dtype float32... Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip
install xlstm`.)

Maybe you didn't had that package installed which is needed:

try:

pip install xlstm
<!-- gh-comment-id:3739925036 --> @Vinay-Umrethe commented on GitHub (Jan 12, 2026): it tried all dtypes : ```bash Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip install xlstm`.) * Trying dtype float16... Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip install xlstm`.) * Trying dtype bfloat16... Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip install xlstm`.) * Trying dtype float32... Failed (The `xlstm` package is required to use Bolmo. Please install it via `pip install xlstm`.) ``` Maybe you didn't had that package installed which is needed: try: ```bash pip install xlstm ```
Author
Owner

@Vinay-Umrethe commented on GitHub (Jan 12, 2026):

you can share more logs if a new error occur still after installing it...

<!-- gh-comment-id:3739930540 --> @Vinay-Umrethe commented on GitHub (Jan 12, 2026): you can share more logs if a new error occur still after installing it...
Author
Owner

@p-e-w commented on GitHub (Oct 12, 2026):

Closing as there have been a huge number of changes since. Please open a new issue if that model still doesn't work.

<!-- gh-comment-id:6124683674 --> @p-e-w commented on GitHub (Oct 12, 2026): Closing as there have been a huge number of changes since. Please open a new issue if that model still doesn't work.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
p-e-w/heretic#55
No description provided.