[GH-ISSUE #1820] Pulled SQLCoder2 even though it's not listed in the library #47548

Closed
opened 2026-04-28 04:08:45 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @lestan on GitHub (Jan 6, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/1820

I wanted to test out sqlcoder2, but only saw sqlcoder on the model library page

I still tried to see what would happen if I ran Ollama pull sqlcoder2...and it worked

It pulled down the model named sqlcoder2:latest

Is this an issue with the model library not being up to date or is it downloading sqlcoder (assuming v1) even though I'm asking for sqlcoder2.

Here's the output of the modelfile

lestan@Lestans-MacBook-Pro learn-text-to-sql % ollama show sqlcoder2 --modelfile 
# Modelfile generated by "ollama show"
# To build a new Modelfile based on this one, replace the FROM line with:
# FROM sqlcoder2:latest

FROM /Users/lestan/.ollama/models/blobs/sha256:4018b30faaf8b1e4cedad4dff4871f74e369950ddd25a0a4e8b0657a18710517
TEMPLATE """{{ .Prompt }}"""
PARAMETER stop "<|endoftext|>"
Originally created by @lestan on GitHub (Jan 6, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/1820 I wanted to test out sqlcoder2, but only saw sqlcoder on the [model library page](https://ollama.ai/library?sort=newest&q=llama) I still tried to see what would happen if I ran Ollama pull sqlcoder2...and it worked It pulled down the model named sqlcoder2:latest Is this an issue with the model library not being up to date or is it downloading sqlcoder (assuming v1) even though I'm asking for sqlcoder2. Here's the output of the modelfile ``` lestan@Lestans-MacBook-Pro learn-text-to-sql % ollama show sqlcoder2 --modelfile # Modelfile generated by "ollama show" # To build a new Modelfile based on this one, replace the FROM line with: # FROM sqlcoder2:latest FROM /Users/lestan/.ollama/models/blobs/sha256:4018b30faaf8b1e4cedad4dff4871f74e369950ddd25a0a4e8b0657a18710517 TEMPLATE """{{ .Prompt }}""" PARAMETER stop "<|endoftext|>" ```
Author
Owner

@igorschlum commented on GitHub (Jan 8, 2024):

Hi @lestan

SQLcoder2 seams to be a valid model. It's bigger than SQLCoder (9 GB instead of 4.1).

It could be a copy of sqlcoder:15b what has the same size.

Ollama pull sqlcoder2
pulling manifest
pulling 4018b30faaf8... 100% ▕████████████████▏ 9.0 GB
pulling a67353d85e36... 100% ▕████████████████▏ 21 KB
pulling 1576480a555b... 100% ▕████████████████▏ 36 B
pulling 1cc25ac1ef96... 100% ▕████████████████▏ 386 B
verifying sha256 digest
writing manifest
removing any unused layers
success
(base) igor@Mac-Studio-192 ~ % ollama show sqlcoder2 --modelfile
Modelfile generated by "ollama show"
To build a new Modelfile based on this one, replace the FROM line with:
FROM sqlcoder2:latest

FROM /Users/igor/.ollama/models/blobs/sha256:4018b30faaf8b1e4cedad4dff4871f74e369950ddd25a0a4e8b0657a18710517
TEMPLATE """{{ .Prompt }}"""
PARAMETER stop "<|endoftext|>"
(base) igor@Mac-Studio-192 ~ % ollama run sqlcoder2

  • give me the sql to delete a database

drop database ;

  • Send a message (/? for help)
<!-- gh-comment-id:1881708020 --> @igorschlum commented on GitHub (Jan 8, 2024): Hi @lestan SQLcoder2 seams to be a valid model. It's bigger than SQLCoder (9 GB instead of 4.1). It could be a copy of sqlcoder:15b what has the same size. Ollama pull sqlcoder2 pulling manifest pulling 4018b30faaf8... 100% ▕████████████████▏ 9.0 GB pulling a67353d85e36... 100% ▕████████████████▏ 21 KB pulling 1576480a555b... 100% ▕████████████████▏ 36 B pulling 1cc25ac1ef96... 100% ▕████████████████▏ 386 B verifying sha256 digest writing manifest removing any unused layers success (base) igor@Mac-Studio-192 ~ % ollama show sqlcoder2 --modelfile Modelfile generated by "ollama show" To build a new Modelfile based on this one, replace the FROM line with: FROM sqlcoder2:latest FROM /Users/igor/.ollama/models/blobs/sha256:4018b30faaf8b1e4cedad4dff4871f74e369950ddd25a0a4e8b0657a18710517 TEMPLATE """{{ .Prompt }}""" PARAMETER stop "<|endoftext|>" (base) igor@Mac-Studio-192 ~ % ollama run sqlcoder2 - give me the sql to delete a database drop database <database-name>; - Send a message (/? for help)
Author
Owner

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

We had set sqlcoder2 to be hidden while we were testing it, and then forgot to delete it. You should just use the sqlcoder model as it should be the most up-to-date. I've gone ahead and removed sqlcoder2 from the registry so you won't be able to pull it any more.

Thanks for the issue!

<!-- gh-comment-id:1989539499 --> @pdevine commented on GitHub (Mar 11, 2024): We had set `sqlcoder2` to be hidden while we were testing it, and then forgot to delete it. You should just use the `sqlcoder` model as it should be the most up-to-date. I've gone ahead and removed `sqlcoder2` from the registry so you won't be able to pull it any more. Thanks for the issue!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#47548