[GH-ISSUE #8245] Error: open config.json: file does not exist #51777

Closed
opened 2026-04-28 20:55:56 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @jieguolove on GitHub (Dec 26, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/8245

What is the issue?

root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# ollama --version
ollama version is 0.4.5

root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# pwd
/root/.ollama/TeleChat2-35B-Nov

root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# more Modelfile
FROM pytorch_model_00001-of-00008.bin
FROM pytorch_model_00002-of-00008.bin
FROM pytorch_model_00003-of-00008.bin
FROM pytorch_model_00004-of-00008.bin
FROM pytorch_model_00005-of-00008.bin
FROM pytorch_model_00006-of-00008.bin
FROM pytorch_model_00007-of-00008.bin
FROM pytorch_model_00008-of-00008.bin

root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# export OLLAMA_MODEL_CONFIG=/root/.ollama/TeleChat2-35B-Nov/config.json

root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# ollama create telechat2 -f Modelfile
transferring model data 100%
converting model
Error: open config.json: file does not exist

The. bin file and the. json file are in the same directory, but the prompt file does not exist.

root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# ll
total 69211684
drwxr-xr-x 3 root root 4096 Dec 26 05:24 ./
drwxr-xr-x 10 root root 4096 Dec 26 02:58 ../
drwxr-xr-x 8 root root 4096 Dec 23 07:34 .git/
-rw-r--r-- 1 root root 1723 Dec 20 15:33 .gitattributes
-rw-r--r-- 1 root root 321 Dec 26 05:24 Modelfile
-rw-r--r-- 1 root root 13167 Dec 20 15:33 README.md
-rw-r--r-- 1 root root 2180 Dec 26 05:38 config.json
-rwxrwxrwx 1 root root 48 Dec 20 15:33 configuration.json*
-rw-r--r-- 1 root root 4481 Dec 20 15:33 configuration_telechat2.py
-rwxrwxrwx 1 root root 299 Dec 20 15:33 generation_config.json*
-rw-r--r-- 1 root root 5273 Dec 20 15:33 generation_utils.py
-rw-r--r-- 1 root root 36126 Dec 20 15:33 modeling_telechat2.py
-rwxrwxrwx 1 root root 54515 Dec 20 19:05 pytorch_model.bin.index.json*
-rw-r--r-- 1 root root 10066750625 Dec 21 01:54 pytorch_model_00001-of-00008.bin
-rw-r--r-- 1 root root 8456137459 Dec 21 01:30 pytorch_model_00002-of-00008.bin
-rw-r--r-- 1 root root 8456137523 Dec 20 19:05 pytorch_model_00003-of-00008.bin
-rw-r--r-- 1 root root 8456137523 Dec 21 00:00 pytorch_model_00004-of-00008.bin
-rw-r--r-- 1 root root 8456137523 Dec 20 21:14 pytorch_model_00005-of-00008.bin
-rw-r--r-- 1 root root 8456137523 Dec 21 00:33 pytorch_model_00006-of-00008.bin
-rw-r--r-- 1 root root 8456137523 Dec 21 00:57 pytorch_model_00007-of-00008.bin
-rw-r--r-- 1 root root 10066763327 Dec 21 02:32 pytorch_model_00008-of-00008.bin
-rw-r--r-- 1 root root 8824 Dec 20 15:33 tokenization_telechat2.py
-rw-r--r-- 1 root root 2197499 Dec 20 19:05 tokenizer.model
-rwxrwxrwx 1 root root 5182 Dec 20 15:33 tokenizer_config.json*

Then I added config.json to Modelfile and executed create again with the following error:

root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# more Modelfile
from config.json
from pytorch_model_00001-of-00008.bin
from pytorch_model_00002-of-00008.bin
from pytorch_model_00003-of-00008.bin
from pytorch_model_00004-of-00008.bin
from pytorch_model_00005-of-00008.bin
from pytorch_model_00006-of-00008.bin
from pytorch_model_00007-of-00008.bin
from pytorch_model_00008-of-00008.bin

root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# ollama create telechat2 -f Modelfile
transferring model data 100%
Error: unsupported content type: text/plain; charset=utf-8

the same problem:
https://github.com/ollama/ollama/issues/5600

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.4.5

Originally created by @jieguolove on GitHub (Dec 26, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/8245 ### What is the issue? root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# ollama --version ollama version is 0.4.5 root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# pwd /root/.ollama/TeleChat2-35B-Nov root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# more Modelfile FROM pytorch_model_00001-of-00008.bin FROM pytorch_model_00002-of-00008.bin FROM pytorch_model_00003-of-00008.bin FROM pytorch_model_00004-of-00008.bin FROM pytorch_model_00005-of-00008.bin FROM pytorch_model_00006-of-00008.bin FROM pytorch_model_00007-of-00008.bin FROM pytorch_model_00008-of-00008.bin root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# export OLLAMA_MODEL_CONFIG=/root/.ollama/TeleChat2-35B-Nov/config.json root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# ollama create telechat2 -f Modelfile transferring model data 100% converting model Error: open config.json: file does not exist **The. bin file and the. json file are in the same directory, but the prompt file does not exist.** root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# ll total 69211684 drwxr-xr-x 3 root root 4096 Dec 26 05:24 ./ drwxr-xr-x 10 root root 4096 Dec 26 02:58 ../ drwxr-xr-x 8 root root 4096 Dec 23 07:34 .git/ -rw-r--r-- 1 root root 1723 Dec 20 15:33 .gitattributes -rw-r--r-- 1 root root 321 Dec 26 05:24 Modelfile -rw-r--r-- 1 root root 13167 Dec 20 15:33 README.md -rw-r--r-- 1 root root 2180 Dec 26 05:38 config.json -rwxrwxrwx 1 root root 48 Dec 20 15:33 configuration.json* -rw-r--r-- 1 root root 4481 Dec 20 15:33 configuration_telechat2.py -rwxrwxrwx 1 root root 299 Dec 20 15:33 generation_config.json* -rw-r--r-- 1 root root 5273 Dec 20 15:33 generation_utils.py -rw-r--r-- 1 root root 36126 Dec 20 15:33 modeling_telechat2.py -rwxrwxrwx 1 root root 54515 Dec 20 19:05 pytorch_model.bin.index.json* -rw-r--r-- 1 root root 10066750625 Dec 21 01:54 pytorch_model_00001-of-00008.bin -rw-r--r-- 1 root root 8456137459 Dec 21 01:30 pytorch_model_00002-of-00008.bin -rw-r--r-- 1 root root 8456137523 Dec 20 19:05 pytorch_model_00003-of-00008.bin -rw-r--r-- 1 root root 8456137523 Dec 21 00:00 pytorch_model_00004-of-00008.bin -rw-r--r-- 1 root root 8456137523 Dec 20 21:14 pytorch_model_00005-of-00008.bin -rw-r--r-- 1 root root 8456137523 Dec 21 00:33 pytorch_model_00006-of-00008.bin -rw-r--r-- 1 root root 8456137523 Dec 21 00:57 pytorch_model_00007-of-00008.bin -rw-r--r-- 1 root root 10066763327 Dec 21 02:32 pytorch_model_00008-of-00008.bin -rw-r--r-- 1 root root 8824 Dec 20 15:33 tokenization_telechat2.py -rw-r--r-- 1 root root 2197499 Dec 20 19:05 tokenizer.model -rwxrwxrwx 1 root root 5182 Dec 20 15:33 tokenizer_config.json* Then I added config.json to Modelfile and executed create again with the following error: root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# more Modelfile **from config.json** from pytorch_model_00001-of-00008.bin from pytorch_model_00002-of-00008.bin from pytorch_model_00003-of-00008.bin from pytorch_model_00004-of-00008.bin from pytorch_model_00005-of-00008.bin from pytorch_model_00006-of-00008.bin from pytorch_model_00007-of-00008.bin from pytorch_model_00008-of-00008.bin root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# ollama create telechat2 -f Modelfile transferring model data 100% Error: unsupported content type: text/plain; charset=utf-8 the same problem: [https://github.com/ollama/ollama/issues/5600](https://github.com/ollama/ollama/issues/5600) ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version 0.4.5
GiteaMirror added the bug label 2026-04-28 20:55:56 -05:00
Author
Owner

@rick-github commented on GitHub (Dec 26, 2024):

Only one FROM line, using the directory the model is in.

FROM /root/.ollama/TeleChat2-35B-Nov
<!-- gh-comment-id:2562248308 --> @rick-github commented on GitHub (Dec 26, 2024): Only one FROM line, using the directory the model is in. ```dockerfile FROM /root/.ollama/TeleChat2-35B-Nov ```
Author
Owner

@jieguolove commented on GitHub (Dec 26, 2024):

Only one FROM line, using the directory the model is in.

FROM /root/.ollama/TeleChat2-35B-Nov

thanks,but new error:

root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# more Modelfile
FROM /root/.ollama/TeleChat2-35B-Nov

root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# ollama create telechat2 -f Modelfile
transferring model data 100%
converting model
Error: unsupported architecture

<!-- gh-comment-id:2562272068 --> @jieguolove commented on GitHub (Dec 26, 2024): > Only one FROM line, using the directory the model is in. > > ```dockerfile > FROM /root/.ollama/TeleChat2-35B-Nov > ``` thanks,but new error: root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# more Modelfile FROM /root/.ollama/TeleChat2-35B-Nov root@27d10c6f52c8:~/.ollama/TeleChat2-35B-Nov# ollama create telechat2 -f Modelfile transferring model data 100% converting model **Error: unsupported architecture**
Author
Owner

@rick-github commented on GitHub (Dec 26, 2024):

Convert the model to GGUF format with llama.cpp and then import it.

<!-- gh-comment-id:2562308169 --> @rick-github commented on GitHub (Dec 26, 2024): Convert the model to GGUF format with llama.cpp and then import it.
Author
Owner

@jieguolove commented on GitHub (Dec 26, 2024):

Convert the model to GGUF format with llama.cpp and then import it.

not supported

image

<!-- gh-comment-id:2562332076 --> @jieguolove commented on GitHub (Dec 26, 2024): > Convert the model to GGUF format with llama.cpp and then import it. not supported ![image](https://github.com/user-attachments/assets/268008fc-da92-4808-ba23-234045625a24)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#51777