[GH-ISSUE #10158] Llama4ForConditionalGeneration unsupported issue #68722

Closed
opened 2026-05-04 14:59:36 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Notbici on GitHub (Apr 7, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/10158

What is the issue?

Hi,

I'm trying to convert my safetensors version of llama4 to ollama.

Model link from Huggingface: https://huggingface.co/meta-llama/Llama-4-Scout-17B-16E-Instruct

My modelfile is simple just:

from /path/to/llama4

Output after it spent time copying was:

...
copying file sha256:e537ea7d13c82f40252b7c6a1d4dc562a3c92a5bb0136ae3ffc3272cbbdbccab 100%
copying file sha256:7a93c78a9882608c08b225555f62e06b048fcdaebe8c9431da60b5724bb8bcbf 100%
converting model
Error: unsupported architecture "Llama4ForConditionalGeneration"

I've updated Transformers by running pip install against their git version, how can I actually run Llama4 on Ollama?

Relevant log output


OS

Linux

GPU

Nvidia

CPU

AMD

Ollama version

0.6.4

Originally created by @Notbici on GitHub (Apr 7, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/10158 ### What is the issue? Hi, I'm trying to convert my safetensors version of llama4 to ollama. Model link from Huggingface: https://huggingface.co/meta-llama/Llama-4-Scout-17B-16E-Instruct My modelfile is simple just: > from /path/to/llama4 Output after it spent time copying was: > ... > copying file sha256:e537ea7d13c82f40252b7c6a1d4dc562a3c92a5bb0136ae3ffc3272cbbdbccab 100% > copying file sha256:7a93c78a9882608c08b225555f62e06b048fcdaebe8c9431da60b5724bb8bcbf 100% > converting model > Error: unsupported architecture "Llama4ForConditionalGeneration" I've updated Transformers by running pip install against their git version, how can I actually run Llama4 on Ollama? ### Relevant log output ```shell ``` ### OS Linux ### GPU Nvidia ### CPU AMD ### Ollama version 0.6.4
GiteaMirror added the bug label 2026-05-04 14:59:36 -05:00
Author
Owner

@FlippingBinary commented on GitHub (Apr 7, 2025):

Follow #10143 and #10141.

<!-- gh-comment-id:2782687840 --> @FlippingBinary commented on GitHub (Apr 7, 2025): Follow #10143 and #10141.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#68722