[GH-ISSUE #468] Add Refact model #218

Closed
opened 2026-04-12 09:44:22 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @Alainx277 on GitHub (Sep 5, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/468

A new 1.6b parameter model called "Refact" has been released.

Blog post

Hugging Face

I tried adding it myself, but the llama.cpp scripts to convert to GGML format did not work. Keep in mind that I'm a novice in this area, and it may work with the correct arguments.

Originally created by @Alainx277 on GitHub (Sep 5, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/468 A new 1.6b parameter model called "Refact" has been released. [Blog post](https://refact.ai/blog/2023/introducing-refact-code-llm/) [Hugging Face](https://huggingface.co/smallcloudai/Refact-1_6B-fim) I tried adding it myself, but the llama.cpp scripts to convert to GGML format did not work. Keep in mind that I'm a novice in this area, and it may work with the correct arguments.
GiteaMirror added the model label 2026-04-12 09:44:22 -05:00
Author
Owner

@technovangelist commented on GitHub (Dec 4, 2023):

It looks like that model is using an architecture called GPTRefactForCausalLM which is not one supported by Ollama.

<!-- gh-comment-id:1839311446 --> @technovangelist commented on GitHub (Dec 4, 2023): It looks like that model is using an architecture called GPTRefactForCausalLM which is not one supported by Ollama.
Author
Owner

@coder543 commented on GitHub (Jan 25, 2024):

llama.cpp claims to support Refact. Possibly added in this PR, and discussed here.. So, I would expect this to be relatively straightforward now, but I haven't tested it myself yet, just making a note here.

<!-- gh-comment-id:1911187197 --> @coder543 commented on GitHub (Jan 25, 2024): llama.cpp claims to support Refact. Possibly [added in this PR](https://github.com/ggerganov/llama.cpp/pull/3329), and [discussed here.](https://github.com/ggerganov/llama.cpp/issues/3061). So, I would expect this to be relatively straightforward now, but I haven't tested it myself yet, just making a note here.
Author
Owner

@jmorganca commented on GitHub (Dec 23, 2024):

This should be possible by importing existing models with this architecture (in GGUF for now). Thanks for the issue!

<!-- gh-comment-id:2558699725 --> @jmorganca commented on GitHub (Dec 23, 2024): This should be possible by importing existing models with this architecture (in GGUF for now). 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#218