Skip to content

Eval bug: Incorrect outputs when running inference in multiple nodes (Mac) #16657

@jlcaam-bit

Description

@jlcaam-bit

Name and Version

b6791 and previous

Operating systems

Mac

GGML backends

Metal

Hardware

Models

Multiple****

Problem description & steps to reproduce

My setup has two different nodes: MacMini M2 Pro + MacMini M1. When running inference on multi-node at some point the output starts repeating one token until the end of the context window.

Only in multi-node inference, no issue in single node.

Happens with different models.

Using llama-server or llama-cli. ( + rpc-server )

Bug in all versions starting at 6473. 6471 and previous are fine.

Examples

Running in dual-node the result is wrong:

./rpc-server -H 10.1.2.2:50052 (in the second machine)

./llama-cli --model /var/lib/modelostemp/gpt-oss-20b-mxfp4.gguf --temp 1 --top_k 20 --top_p 1.0 --min_p 0 --seed 1234 --jinja --ctx-size 7000 --no-mmap --rpc 10.1.2.2:50052


> tell me about Julio Cesar
<|channel|>analysis<|message|>User says: "tell me about Julio Cesar". This is ambiguous: could refer to historical Julius (Roman) or other person named Julio Cesar e.g., footballer. Usually people ask general about historical. Need to ask clarifying? The instruction: "If you are unsure what user is asking for... ask for clarification." Here unclear: Julio Cesar could be the Emperor? It might also be the Brazilian footballer? Could also be the Spanish singer? Let's see: "Julio César" with accent; many people. In Brazil, famous footballers: Julio Cesar de Souza Júnior (born 1985), Brazilian goalkeeper. There's also "Julio César" the singer? Or "Julio César" in Spanish maybe meaning "Julius Caesar" but spelled Spanish. Likely user wants info about the Roman general Julius Caesar. But the name is spelled Julio with J. In Spanish/Portuguese, Julius Caesar is Julio César. So user might want about Roman. But there is also the footballer. Without clarifying, risk misinterpretation. The instruction: if uncertain, ask for clarification. So I should ask: specify which Julio Cesar.<|end|><|start|>assistant<|channel|>final<|message|>I’m happy to help—but could you specify which Julio César you’re interested in?  
- The Roman general/ statesman (often written “Julius Caesar” in English).  
- The Brazilian football goalkeeper Julio César de Souza Júnior (born 1985).  
- Another public figure named Julio César (e.g., an artist, politician, etc.).

Just let me know which one (or if you’d like information on all of them!) so I can give you the most accurate and useful details.

> the emperor
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
(omitted)
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

main: context full and context shift is disabled => stopping

Running on an single node the result is okay:

./llama-cli --model /var/lib/modelostemp/gpt-oss-20b-mxfp4.gguf --temp 1 --top_k 20 --top_p 1.0 --min_p 0 --seed 1234 --jinja --ctx-size 7000 --no-mmap --n-cpu-moe 1

does not show the problem.

Same problem with other models:

./llama-cli --model /var/lib/modelostemp/Qwen3-4B-2507/Qwen3-4B-Instruct-2507-Q8_0.gguf --temp 0 --top_k 20 --top_p 0.95 --seed 12345 --ctx-size 4000 --rpc 10.1.2.2:50052

> tell me about Julio Cesar
It seems like you might be referring to **Julio César**, but there are a few notable people with that name. Here are the most prominent ones:

---

### 1. **Julio César (the Roman Emperor)**
This is likely the most historically significant figure named Julio César.

- **Full Name**: Gaius Julius Caesar (commonly known as Julius Caesar)
- **Lived**: 100 BCE – 44 BCE
- **Role**: Roman statesman, general, and dictator
- **Key Facts**:
  - One of the most influential figures in Roman history.
  - Expanded the Roman Republic through military conquests (e.g., Gaul).
  - Introduced major reforms in law, calendar (Julian calendar), and governance.
  - Assassinated in 44 BCE by a group of senators who feared his growing power.
  - His assassination led to the rise of the Roman Empire and eventually Augustus (Octavian).

> Note: The name "Julio César" is a Spanish/Portuguese version of "Julius Caesar".

---

### 2. **Julio César (the boxer)000000000000000000000000000000000
(omitted)
00000000000000000000000000000000000000000000000000000

main: context full and context shift is disabled => stopping

./llama-cli --model /var/lib/modelostemp/DeepSeek-R1-0528-Qwen3-8B-Q8_0.gguf --flash_attn on --ctx-size 4000 --rpc 10.1.2.2:50052

> tell me about Julio Cesar
<think>
Okay, the user asked "tell me about Julio Cesar". I think they meant Julius Caesar, the famous Roman general and statesman. They probably want a general overview, but I should consider what level of detail they might need.

Let me start by outlining the key points about Julius Caesar. He was a pivotal figure in Roman history, known for his military conquests and political reforms. I need to structure this information clearly but also engagingly. Since the user might be a student or someone with casual interest, I should include both historical significance and interesting anecdotes to keep it captivating.

The user might not just want facts; they could be interested in understanding why Julius Caesar is still relevant today. So, highlighting his lasting legacies like the Julian calendar and his influence on Western literature through "The Brutus" would be useful. Also, his assassination is a major event, so explaining its causes and consequences is necessary.

I should check if the user has any specific interests. Maybe they’re researching for a project or just curious. Either way, providing a well-rounded summary covering his life, achievements, and end is best. Avoiding too much detail unless asked, keeping it concise but informative. 

Including his rise to power, reforms@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

First Bad Commit

b6473

Relevant log output

x

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions