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 #109] Support for Trinity-Nano #60

Open
opened 2026-11-01 04:17:05 +07:00 by bsakaguchi · 0 comments
Owner

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

I attempted to run heretic on Trinity Nano Preview with:

heretic --trust-remote-code True --model .\Trinity-Nano-Preview\

But received this error:

│ heretic\model.py:320 in                                                                          │
│ get_residuals                                                                                    │
│                                                                                                  │
│   317 │   │   │   # layer_hidden_states has shape (prompt, position, component),                 │
│   318 │   │   │   # so this extracts the hidden states at the end of each prompt,                │
│   319 │   │   │   # and stacks them up over the layers.                                          │
│ ❱ 320 │   │   │   [layer_hidden_states[:, -1, :] for layer_hidden_states in hidden_states],      │
│   321 │   │   │   dim=1,                                                                         │
│   322 │   │   )                                                                                  │
│   323                                                                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: 'NoneType' object is not iterable

Hopefully this is just user error and is something simple to fix! Thanks.

Originally created by @martindevans on GitHub (Jan 16, 2026). Original GitHub issue: https://github.com/p-e-w/heretic/issues/109 I attempted to run heretic on [Trinity Nano Preview](https://huggingface.co/arcee-ai/Trinity-Nano-Preview) with: > heretic --trust-remote-code True --model .\Trinity-Nano-Preview\ But received this error: ``` │ heretic\model.py:320 in │ │ get_residuals │ │ │ │ 317 │ │ │ # layer_hidden_states has shape (prompt, position, component), │ │ 318 │ │ │ # so this extracts the hidden states at the end of each prompt, │ │ 319 │ │ │ # and stacks them up over the layers. │ │ ❱ 320 │ │ │ [layer_hidden_states[:, -1, :] for layer_hidden_states in hidden_states], │ │ 321 │ │ │ dim=1, │ │ 322 │ │ ) │ │ 323 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ TypeError: 'NoneType' object is not iterable ``` Hopefully this is just user error and is something simple to fix! Thanks.
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#60
No description provided.