[GH-ISSUE #1538] How to import "MPTForCausalLM" models? #839

Closed
opened 2026-04-12 10:30:22 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @ansutung on GitHub (Dec 15, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1538

Hello everyone,

I'm not sure if I can use the model with the "MPTForCausalLM" architecture with Ollama. I tried to import it following the instructions here: https://github.com/jmorganca/ollama/blob/main/docs/import.md

The import process was successful, but when running with the new model, I encountered an error: "ollama run example "What is your favourite condiment?"

I am using models from this source:
https://huggingface.co/vinai/PhoGPT-7B5
https://huggingface.co/vinai/PhoGPT-7B5-Instruct

image

Thanks

Originally created by @ansutung on GitHub (Dec 15, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1538 Hello everyone, I'm not sure if I can use the model with the "MPTForCausalLM" architecture with Ollama. I tried to import it following the instructions here: https://github.com/jmorganca/ollama/blob/main/docs/import.md The import process was successful, but when running with the new model, I encountered an error: "ollama run example "What is your favourite condiment?" I am using models from this source: https://huggingface.co/vinai/PhoGPT-7B5 https://huggingface.co/vinai/PhoGPT-7B5-Instruct ![image](https://github.com/jmorganca/ollama/assets/26163387/787875d3-9fc6-4883-beb0-585a12e5e5f1) Thanks
GiteaMirror added the bugneeds more info labels 2026-04-12 10:30:22 -05:00
Author
Owner

@mchiang0610 commented on GitHub (Mar 11, 2024):

Hi @ansutung sorry about this. This model should be able to run with Ollama. Are you still seeing issues running the model? If so, can you share the modelfile being used?

So sorry about this. [let me know if you are still running into this problem, and reopen]

<!-- gh-comment-id:1989206252 --> @mchiang0610 commented on GitHub (Mar 11, 2024): Hi @ansutung sorry about this. This model should be able to run with Ollama. Are you still seeing issues running the model? If so, can you share the modelfile being used? So sorry about this. [let me know if you are still running into this problem, and reopen]
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#839