Text Generation
Transformers
Safetensors
llama
text-generation-inference

I try to use the modell with ollama but it does't work

#1
by fipra - opened

(base) fabriziocasula@air-di-fabrizio ~ % ollama rm magicoder
Error: model 'magicoder' not found
(base) fabriziocasula@air-di-fabrizio ~ % ollama rm magicoder:7b
deleted 'magicoder:7b'
(base) fabriziocasula@air-di-fabrizio ~ % ollama run magicoder
pulling manifest
pulling 4a501ed4ce55... 100% β–•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– 3.8 GB
pulling 832698dc48ba... 100% β–•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– 57 B
pulling 317b1d8baaaa... 100% β–•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– 134 B
pulling 58e1b82a691f... 100% β–•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– 18 B
pulling 662eee7cf45e... 100% β–•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ– 455 B
verifying sha256 digest
writing manifest
removing any unused layers
success
Error: llama runner process has terminated
(base) fabriziocasula@air-di-fabrizio ~ % ollama rm magicoder

Intellligent Software Engineering (iSE) org

Hi @fipra , thanks for reporting this. May I know your system information?

MacBook Air
15", M2, 2023

Chip Apple M2
Memoria 16 GB
Disco di avvio Macintosh HD

macOS 13.5 (22G74)

Same here. You have to create a new model file with context size 8192 (PARAMETER num_ctx 8192) or lower. In my Air M2 16GB runs with 8192.

My modelfile:

FROM magicoder:7b-s-cl-q4_K_M

TEMPLATE """{{ .System }}

@@ Instruction
{{ .Prompt }}

@@ Response
"""
SYSTEM """You are an exceptionally intelligent coding assistant that consistently delivers accurate and reliable responses to user instructions."""
PARAMETER num_ctx 8192

Save it anywhere as magicoder_8k and run :

ollama create magicoder_8K -f magicoder_8k

New model created with 8K context.
Run the model:

ollama run magicoder_8K

Hope it helps. Worked for me.

EDIT:

FROM magicoder:7b-s-cl-q4_K_M

You have to match what you have pulled.

Hi there,

Thanks for sharing this, I ran into a similar issue with Ollama on an M2 Mac, and the num_ctx fix worked for me too. Your modelfile solution is spot on.

On a completely different note, if you ever want to display your coding achievements or team photos in a unique way, I recently came across this website that prints images on glass, really sleek for an office or desk setup. Might be a nice reward after getting that model running!

Hope the fix keeps working for you.

Thanks for sharing this fix, it's really helpful. I was running into the exact same "llama runner process has terminated" error on my M2 MacBook Air with 16GB RAM, and adjusting the context size to 8192 using a custom modelfile completely solved it. Your step-by-step instructions are clear and easy to follow. For anyone else struggling, just make sure the FROM line matches the exact model tag you've pulled, and you should be good to go.

On a completely unrelated note, if you're ever looking for something fun to tinker with on the side, I recently stumbled across a site that offers some interesting gaming stuff, you can click here to check it out if you're curious. I was genuinely impressed by what it offers. Anyway, thanks again for the great solution, this saved me a ton of frustration!

Sign up or log in to comment