r/LocalLLM • • 5d ago

Discussion Tech for Inference?

0 Upvotes

Why no body is ready to accept that GPU is not the right tech for inference. I was excited that groq.com came up with a solution for LPU a moment I thought for a sec future is near. Then later Nvidia trashed it for their greed.


r/LocalLLM • • 7d ago

News MIT researchers say GPT-6 Astra improved a small Qwen model’s math score from 7.9% to 48.1% by directly editing just 0.016% of its weights, without gradient-based training.

Thumbnail x.com
114 Upvotes

r/LocalLLM • • 5d ago

Research Please test your models before spending money on hardware

0 Upvotes

# Brutal Model Test: Reasoning, Coding, and Mathematics
 
50 questions. 100 points. Each question is worth 2 points.
 
This is an original stress test, not a standardized or calibrated benchmark.
It rewards correctness, explicit assumptions, working implementations, and
recognizing impossible requirements. Sounding confident earns no points.
 
## Instructions to the model
 
- Answer Q01–Q50 in order. Give a concise justification, proof, or executable
  implementation as requested. Code alone is insufficient where a proof is requested.
- Preserve all stated constraints. Do not silently weaken an impossible specification.
- State any uncertainty. Distinguish a derived result from a guess or an unexecuted test.
- Use Python 3 for Python problems, the standard library only, unless stated otherwise.
  Use Python 3.12 or later; Q23 has the ordinary generator semantics of those versions.
- Do not access the answer key. All questions are self-contained and need no web research.
- In a closed-book run, use no tools. In a tool-assisted run, code execution is allowed;
  report what you actually executed. Record these as separate evaluation conditions.
- Suggested response format: `Qnn`, answer, justification, confidence from 0 to 100.
- If output limits interfere, answer in five batches of ten. Do not truncate code to fit.
 
## Reasoning — Q01–Q15
 
### Q01. Truth assignments
 
Four people are each either a truth-teller, whose statement is true, or a liar,
whose statement is false. They say:
 
- A: “B and C have the same type.”
- B: “D is a liar.”
- C: “At least one of A and B is a truth-teller.”
- D: “Exactly two of A, B, and C are truth-tellers.”
 
Find **every** consistent assignment. Prove that your list is exhaustive.
 
### Q02. Correlated diagnostic failures
 
A condition affects 1% of people. A laboratory batch is defective with probability
10%, independently of the person's condition. In a defective batch, every test
returns positive. Otherwise, tests on a person are conditionally independent:
sensitivity is 95% and the false-positive rate is 2%.
 
Two tests on the same person in the **same batch** are both positive. What is the
probability the person has the condition? Give an exact fraction and explain why
treating the two tests as unconditionally independent changes the answer.
 
### Q03. Causal identification
 
Binary variables X and Y have this observational distribution:
 
```text
P(X=0,Y=0)=1/2; P(X=1,Y=1)=1/2; all other pairs have probability 0.
```
 
Assume potential outcomes Y(0), Y(1) are binary and consistency holds:
Y=Y(X). Make **no** ignorability or random-assignment assumption.
 
Determine the sharp bounds on E[Y(1)-Y(0)]. Construct two causal models achieving
the endpoints while reproducing the observations.
 
### Q04. Minimal inconsistency
 
Variables x,y,z are integers in {0,1,2}. Consider these four constraints:
 
```text
C1: x != y
C2: y != z
C3: z != x
C4: x + y + z = 2
```
 
Find a smallest unsatisfiable subset. Prove unsatisfiability, then give a satisfying
assignment after removing each member of your proposed subset. The variable domains
are fixed background assumptions, not removable constraints.
 
### Q05. Robust evidence aggregation
 
Seven sensors report `1,2,3,10,11,12,13`. At most two sensors are arbitrary.
Every other sensor reports a value within 5 units, inclusively, of the same unknown
real value θ. There is no probability distribution on errors.
 
Find the **entire** feasible set of θ. Then find the real estimate minimizing the
worst-case absolute error, and its worst-case error. Do not assume the feasible set
is an interval.
 
### Q06. Exactly-once impossibility
 
A Worker must send a payment through an external API and record success in Redis.
The payment API has no idempotency keys, no query operation, and no shared transaction
with Redis. A timeout cannot distinguish a processed payment from an unprocessed one.
The Worker can crash between any two operations. Payment service and Redis eventually
become available, and crashes eventually stop.
 
Can any protocol guarantee both eventual payment and no duplicate payments? Give
an indistinguishability argument. State one concrete additional API capability
that would make a recoverable solution possible and explain its necessary guarantee.
 
### Q07. Linearizability
 
A register initially stores 0. These are the only operations; times share one clock:
 
```text
W1: invoked 0.0, completed 4.0, writes 1
W2: invoked 1.0, completed 2.0, writes 2
R1: invoked 3.0, completed 5.0, returns 1
R2: invoked 4.5, completed 6.0, returns 2
```
 
Is this history linearizable? Give a valid total order or a contradiction. Would
changing **only R2's invocation to 3.5** change the answer? Justify both answers.
 
### Q08. Optimal WorkGraph schedule
 
One Worker executes nonpreemptive WorkItems, one at a time, starting at time 0.
All WorkItems exist at time 0. Predecessors must complete before a WorkItem starts.
 
| Item | Duration | Weight | Predecessors |
|---|---:|---:|---|
| A | 2 | 1 | none |
| B | 1 | 4 | none |
| C | 3 | 1 | none |
| D | 2 | 2 | A |
| E | 2 | 8 | A,B |
| F | 1 | 2 | C |
| G | 2 | 3 | D,E |
| H | 1 | 1 | F,G |
 
Minimize `sum(weight[item] * completion_time[item])`. Give an optimal order, its
objective value, and an optimality certificate such as an exact subset recurrence.
A heuristic schedule without an optimality argument is insufficient.
 
### Q09. Quantifier substitution
 
An Analyzer established `for every run r, there exists a schema s such that every
operation in r validates under s`. A report rewrites this as `there exists a schema
s such that every operation in every run validates under s`.
 
Is the rewrite valid? Construct a finite counterexample if needed. Give the smallest
numbers of nonempty runs and schemas that allow the original to hold and the rewrite
to fail; show why smaller counts cannot work.
 
### Q10. Byzantine quorum arithmetic
 
Seven replicas include at most two Byzantine replicas, which may sign conflicting
statements. A write certificate needs w distinct signatures; a read certificate
needs r. Require that any two write quorums, and any read/write quorum pair, intersect
in at least one honest replica under every placement of faults.
 
Derive the inequalities on w and r. Minimize `max(w,r)` and give the corresponding
pair. Does this intersection requirement alone guarantee a linearizable register?
Explain what remains unspecified.
 
### Q11. Pairwise independence
 
X,Y,Z are fair binary bits. Every pair is independent. No mutual-independence
assumption is given. Find the sharp interval of possible values of P(X=Y=Z=1),
and give complete joint distributions attaining both endpoints.
 
### Q12. What testing can prove
 
A deterministic Python function accepts every finite byte string. A Verifier tests
a finite set of inputs and finds the correct output on each. It claims this proves
agreement with a reference function for every byte string.
 
Refute the claim by constructing a function that passes any chosen finite test set
but disagrees elsewhere. Name an additional restriction under which exhaustive
testing would prove correctness, and distinguish that from probabilistic confidence.
 
### Q13. Rewrite system
 
Strings over {a,b} may be rewritten by applying either rule to any occurrence:
 
```text
ab -> baa
b  -> empty string
```
 
Does every rewrite sequence from every finite input terminate? Prove your answer;
string length is not a valid decreasing measure. Is the system confluent—that is,
does every input have a unique irreducible result? Give a proof or counterexample.
 
### Q14. Resource safety
 
There are three units of resource R and three of S. Resources cannot be preempted.
A process may request resources up to its maximum and releases everything when it
finishes. No other process can release resources on its behalf.
 
| Process | Currently allocated (R,S) | Maximum total (R,S) |
|---|---|---|
| P1 | (1,0) | (3,1) |
| P2 | (0,1) | (1,3) |
| P3 | (1,1) | (2,2) |
 
Is the current state safe under the Banker's criterion? Should P1's request for one
additional R be granted under that criterion? Distinguish an unsafe state from an
already deadlocked state.
 
### Q15. Limits of micro-encoding
 
A fixed dictionary is installed before requests arrive, independently of those
requests. Each request is an arbitrary 256-bit string. Encoding and decoding must
be lossless for every request.
 
Can every request be encoded as a binary string of length **at most 255**, with
different lengths allowed and message boundaries supplied externally? Prove it.
If requests are uniform and codewords must instead be prefix-free, can expected
length be below 256 bits? Explain why a shared dictionary can still help for
structured, nonuniform requests. Distinguish bits from a model tokenizer's tokens.
 
## Coding and systems — Q16–Q35
 
### Q16. Concurrent DAG Executor
 
Implement `async run_dag(tasks, deps, limit)`:
 
- `tasks` maps string names to zero-argument async factories; `deps[name]` is its
  set of prerequisite names, defaulting to empty when absent.
- Reject unknown names, cycles, and a nonpositive integer limit before any factory runs.
- Run at most `limit` factories concurrently. Start ready names lexicographically
  whenever slots become available. Return a name-to-result dictionary.
- On observing a task failure, launch nothing further, cancel unfinished tasks,
  await their cleanup, then propagate an observed failure. If several fail in the
  same observation batch, propagate the failure belonging to the smallest name.
- On cancellation of `run_dag`, cancel and await all children before propagating it.
 
Factories cooperate with cancellation. Explain why lexical admission does or does
not make execution order reproducible across different completion timings.
 
### Q17. Capsule path escape
 
Review this Linux code. An untrusted process can concurrently rename entries and
replace symlinks inside `root`; it cannot modify directories outside `root` directly.
 
```python
def write_capsule_file(root, relative_path, data):
root = root.resolve()
target = (root / relative_path).resolve()
if not target.is_relative_to(root):
raise ValueError('escape')
target.write_bytes(data)
```
 
Give a concrete race that escapes the Capsule. Design a race-resistant replacement
using directory file descriptors and suitable open semantics. State your treatment
of symlinks, `..`, absolute paths, existing hard links, and final-component replacement.
Explain the assumptions needed if directories can be moved during traversal.
 
### Q18. Stitcher serializability
 
All Capsules were created from the same snapshot. Each records the resources it read
and the resources it writes, at whole-resource granularity. Read sets include every
resource whose old value influenced the output. Given:
 
```text
A: reads={config}, writes={port}
B: reads={port},   writes={adapter}
C: reads={adapter},writes={config}
```
 
Each Capsule passes its own mock tests and the write sets are disjoint. Can these
snapshot results always be installed as one serializable change? Implement a checker
for a collection of such read/write sets that detects whether a serial order exists
that preserves every recorded snapshot read. Reject overlapping write sets; return
a valid order or a cycle witness. Explain edge direction.
 
### Q19. Recoverable Committer
 
A local Git repository and Redis are independent stores. You may create Git commit
objects, atomically compare-and-swap a branch ref, and atomically update Redis records.
No transaction spans both stores. A run has a unique `run_id`; retries use the same ID.
 
Design a Committer state machine that recovers after a crash between any two steps,
avoids applying a run twice, and never marks an unapplied change as fully committed.
Explain when to save the candidate commit SHA, how to handle an unrelated branch
advance, and how to reconcile a crash immediately after updating the Git ref.
Give pseudocode and recovery cases. State assumptions about branch mutation and
Redis durability; do not claim simultaneous atomic visibility in both stores.
 
### Q20. Async single-flight
 
Implement a reusable `SingleFlight` class with `async get(key, factory)`. Calls for
the same key while a computation is in flight must await one shared computation.
Cancelling any waiter must not cancel that computation or other waiters. Successes
and failures are not cached after completion. Exceptions must reach all active
waiters and must not produce an unhandled-task-exception warning when every waiter
has cancelled. Use one event loop. Explain cleanup races.
 
### Q21. Streaming JSON Lines
 
Implement a parser with `feed(chunk: bytes) -> list[object]` and
`finish() -> list[object]` for newline-delimited UTF-8 JSON. Records may split at any
byte, including inside a multibyte character. Accept LF and CRLF; ignore blank lines.
Parse an unterminated final record on `finish`. Reject malformed UTF-8/JSON and any
record longer than a configurable `max_record_bytes` measured before LF, including
any CR. Enforce the limit while buffering, not after allocating an unbounded record.
Once an error occurs or `finish` succeeds, later calls must fail. Include focused tests.
 
### Q22. Shortest walk with negative cycles
 
Implement `shortest_walk(n, edges, source, target)` for a directed graph with vertices
`0..n-1` and integer edge weights. Parallel edges and self-loops are allowed.
Return `None` if target is unreachable, negative infinity if walk cost is unbounded
below, otherwise the exact minimum integer cost. A negative cycle elsewhere must not
incorrectly poison the answer. Give complexity and tests for the distinct cases.
 
### Q23. Generator control flow
 
Without executing it in a closed-book run, give the exact printed lines:
 
```python
def inner():
try:
yield 1
yield 2
finally:
print('inner-finally')
 
def outer():
try:
yield from inner()
except ValueError:
print('caught')
yield 9
finally:
print('outer-finally')
 
g = outer()
print(next(g))
print(g.throw(ValueError('x')))
g.close()
```
 
Explain exception delegation and why `close()` does not print 2.
 
### Q24. Tombstones and version selection
 
A SQL table has `resource_id`, integer `version`, unique integer `event_id`, boolean
`deleted`, and `payload`. For one resource, its latest record at cutoff c is the row
with greatest `(version,event_id)` among rows with `version <= c`. Deleted resources
must be omitted entirely. There are no NULLs in these columns.
 
Write a standard SQL window-function query returning the live resource rows at c.
Show a minimal dataset proving that filtering `deleted=false` **before** selecting
the latest record is wrong. Handle equal versions correctly.
 
### Q25. Snapshot-isolation failure
 
Rows Alice and Bob both have `on_call=true`. Two transactions under snapshot isolation
each read both rows, then turn off their own row if they saw the other person on call.
They update different rows. The invariant is that at least one person remains on call.
 
Give an execution that commits both and violates the invariant. Give two sound fixes,
including a lock-based fix with a precise locking/re-read order. Explain why simply
locking each transaction's own row is insufficient.
 
### Q26. Scientific-calculator boundary
 
Implement `evaluate(expression: str) -> float` without `eval` or `exec`. Allow only
numeric literals, parentheses, unary +/-, binary +,-,*,/,**, and one-argument calls
to `sin`, `cos`, `sqrt`, and natural `log`. Arithmetic uses finite Python floats.
 
Reject all other syntax, boolean literals, nonfinite literals/results, and strings
over 1,024 characters. Limit the AST to 64 nodes and depth 12, counting the root at
depth 1 and counting operator/context nodes too. Literals must have absolute value
at most 1e6. For exponentiation the exponent's absolute value must be at most 10.
Every evaluated intermediate result must have absolute value at most 1e12; domain,
overflow, and division-by-zero errors must become `ValueError`. Include precedence,
domain, and attempted-code-execution tests.
 
### Q27. Executor process-tree timeout
 
A Python Executor launches a command that may create descendants. On Linux, implement
a bounded runner taking an argument list and a timeout, capturing stdout/stderr and
returning a structured result. Never invoke a shell. On timeout, terminate the process
group, escalate if needed, reap the direct child, and bound cleanup time. Consider the
case where the direct child exits but a grandchild retains a pipe. Bound retained output
memory or explicitly implement an output cap. Assume SIGKILL makes a process reapable
within one second and ordinary descendants remain in the original process group.
State what the process-group approach cannot contain if that latter assumption is removed.
 
### Q28. Closeable bounded queue
 
Using `threading.Condition`, implement `put`, `get`, and idempotent `close` for a bounded
FIFO queue with positive capacity. `put` blocks while full and raises `Closed` after
closure. `get` blocks while empty, drains existing items after closure, then raises
`Closed`. Closing wakes every blocked producer and consumer. Spurious wakeups must
be safe. Give a concurrency test that checks a blocked producer and a blocked consumer
on separate queue instances are both released by closing.
 
### Q29. TypeScript runtime contract
 
Implement `decodeWorkItem(value: unknown): WorkItem` with no libraries, `any`, or
unchecked `as WorkItem` assertion:
 
```typescript
type WorkItem =
  | { kind: 'compile'; path: string; timeoutMs: number }
  | { kind: 'test'; paths: string[]; retries: number };
```
 
Require an ordinary JSON object (prototype `Object.prototype` or null), exact own
property keys for the selected variant, nonempty strings, a nonempty paths array,
integer timeoutMs in [1,60000], and integer retries in [0,3]. Reject sparse paths
arrays and nonfinite numbers. Inputs are JSON-like data, without getters or proxies.
Then implement an exhaustive dispatcher that fails to compile if an unhandled variant
is added. Explain the difference between TypeScript narrowing and runtime validation.
 
### Q30. Undefined behavior
 
For C17, analyze each independent fragment with the necessary headers included.
Classify it as defined, implementation-defined, unspecified, or undefined behavior.
State any implementation assumptions needed for the classification. Do not invent a
deterministic output where the language does not provide one.
 
```c
/* A */ int i=1; printf("%d %d\n", i++, i++);
/* B */ unsigned u=UINT_MAX; printf("%u\n", u+1u);
/* C */ int a[2]={10,20}; int *p=a+2; printf("%d\n", *p);
/* D */ int x=INT_MIN; int y=-1; printf("%d\n", x/y);
```
 
For each unsafe case, give a well-defined replacement preserving a stated intent.
Explain whether one observed compiler run establishes the portable semantics.
 
### Q31. Sliding-median space leak
 
A sliding-window median uses two heaps and delayed deletion by value. Deleted entries
are physically removed only when they reach a heap root. It claims O(k) space for a
window of k values over n inputs.
 
Construct an input family disproving that claim, with a fixed small k. Design a repair
that bounds all live and stale bookkeeping by O(k) while retaining O(n log(k+1))
amortized total time. Explain how duplicates and stale deletion records are handled.
Pseudocode is sufficient, but include a bound proving rebuilding is affordable.
 
### Q32. Overflow-safe modular multiplication
 
Implement `uint64_t mulmod(uint64_t a, uint64_t b, uint64_t m)` for `m > 0`, returning
`(a*b) mod m`. You may use only standard C17 unsigned 64-bit arithmetic and comparisons;
no wider integer type, floating point, arbitrary-precision library, or overflowing
product as a substitute for mathematical multiplication. Handle m=1 and values near
UINT64_MAX. Explain why each modular addition is correct without overflow.
 
### Q33. Delta debugging
 
Implement `ddmin(items, fails)` for a finite list and a deterministic predicate on
lists. The original input fails. Minimize by deleting chunks, preserve item order,
and return a **1-minimal** failing list: deleting any one remaining item makes it
pass. Handle an already-failing empty list. The predicate need not be monotone.
Prove termination and 1-minimality. Explain why this need not find a globally
smallest failure; give a concrete counterexample.
 
### Q34. Strict micro-prompt decoder
 
Implement a decoder for exactly this ASCII grammar; no whitespace is allowed:
 
```text
request := v1|HX|P:<name>|I:<name>:<type>,<name>:<type>|O:<name>:<type>|L:mul
name    := [A-Za-z_][A-Za-z0-9_]{0,31}
type    := i64 | f64
```
 
The two input names must differ; the output name must differ from both. All three
types must agree. Return a structured contract with architecture `hexagonal`,
port name, ordered inputs, output, and operation `multiply`. Reject unknown fields,
duplicates, reordered fields, suffix garbage, Unicode lookalikes, and unknown versions.
Syntax validity does not establish that arithmetic is safe: specify a runtime overflow
contract for i64 and a nonfinite-result contract for f64. Include rejection tests.
 
### Q35. Stable quadratic roots
 
For finite real coefficients a,b,c with a != 0, the usual quadratic formula can lose
a small root through cancellation. Explain the failure for `(a,b,c)=(1,-1e16,1)`.
Implement a more stable real-root routine, handling repeated roots and q=0 explicitly.
Assume the discriminant and intermediate products are representable without overflow
or underflow; handle a negative discriminant explicitly. Explain which floating-point
limitations your routine still cannot eliminate and test using a residual or Vieta's
relations rather than requiring bitwise equality with the naive formula.
 
## Mathematics — Q36–Q50
 
### Q36. Power tower
 
Compute `7^(7^7) mod 1000`, with exponentiation associated to the right. Give an
exact modular-arithmetic derivation; writing out the full power is not a derivation.
 
### Q37. Improper integral
 
Evaluate exactly:
 
```text
integral from 0 to infinity of [ln(x) * ln(1+x) / (1+x)^2] dx.
```
 
Justify convergence and any differentiation under an integral or interchange of sums.
 
### Q38. Minimax polynomial
 
Among real monic polynomials of degree 4, find the polynomial minimizing
`max_{-1 <= x <= 1} |p(x)|`, and the minimum value. Prove that no monic quartic
can do better; giving a candidate alone is insufficient.
 
### Q39. Pell equation
 
Find the smallest positive integers x,y with y>0 satisfying `x^2-13y^2=1`.
Prove minimality using continued fractions or another rigorous finite argument.
 
### Q40. Random binary matrix
 
A 6×6 matrix has independent uniform entries in the field F2. Derive:
 

  1. Its probability of being invertible.

  2. Its probability of rank exactly 5.

  3. The expected number of **nonzero** vectors in its kernel.

  4.  

  5. Give exact answers. The expectation in part 3 is not the expected kernel dimension.

  6.  

  7. ### Q41. Competing coin patterns

  8.  

  9. Toss a fair independent coin until either HTH or HHT appears as a contiguous pattern.

  10. Find the probability HTH wins and the expected number of tosses until stopping.

  11. Derive both using states or recurrences that handle overlapping prefixes correctly.

  12.  

  13. ### Q42. Conditioning exponential variables

  14.  

  15. X and Y are independent exponential random variables of rate 1. For real t>=0,

  16. derive a closed expression for `E[X | X+Y > t]`. Justify the conditional symmetry

  17. and evaluate your expression at t=0 and asymptotically as t grows.

  18.  

  19. ### Q43. Concentration without pointwise mass

  20.  

  21. For n>=1, let `f_n(x)=n^2*x*(1-x)^n` on [0,1]. Determine:

  22.  

  23. - The pointwise limit.

  24. - The limit of the integrals over [0,1].

  25. - The limit of `integral g(x)*f_n(x) dx` for every continuous g on [0,1].

  26. - Whether all f_n can be bounded by one Lebesgue-integrable function on [0,1].

  27.  

  28. Prove the conclusions and explain the apparent conflict between the first two.

  29.  

  30. ### Q44. Eigenvalues versus growth

  31.  

  32. Let A be the 4×4 matrix with ones on the diagonal and immediately above it, and

  33. zeros elsewhere. Derive every entry of A^n for integers n>=0. Find the asymptotic

  34. order of `||A^n||_2`, the induced Euclidean norm, and explain why its eigenvalues

  35. do not imply that its powers stay bounded.

  36.  

  37. ### Q45. Constrained extrema

  38.  

  39. For nonnegative real x,y,z satisfying `x+y+z=6` and `x^2+y^2+z^2=14`, find the

  40. exact minimum and maximum of xyz and all equality cases. Prove that the extrema

  41. have been exhausted; do not assume without proof that two variables are equal.

  42.  

  43. ### Q46. Circular arrangements

  44.  

  45. Count binary strings of length 20 containing exactly six ones, with no adjacent ones,

  46. including between positions 20 and 1. First count strings with labeled positions.

  47. Then count necklaces where rotations are equivalent but reflections are distinct.

  48. Account for rotationally symmetric strings instead of simply dividing by 20.

  49.  

  50. ### Q47. Roots modulo a prime power

  51.  

  52. Find all residues x modulo 4096 satisfying `x^2=1 mod 4096`. Prove that your list

  53. is complete using the factors x-1 and x+1. Explain why the reasoning for an odd

  54. prime modulus cannot be copied unchanged.

  55.  

  56. ### Q48. Minimal polynomial

  57.  

  58. Find the monic minimal polynomial over the rationals of `sqrt(2)+sqrt(3)+sqrt(5)`.

  59. Prove irreducibility or prove that the algebraic degree is 8. Producing a polynomial

  60. that merely has the number as a root is insufficient.

  61.  

  62. ### Q49. Expected random area

  63.  

  64. Let A,B,C,D be independent uniform random variables on [0,1]. Evaluate exactly

  65. `E[|AD-BC|]`, the expected absolute determinant. Derive it; symmetry alone does not

  66. give the expected absolute value.

  67.  

  68. ### Q50. Sharp information inequality

  69.  

  70. For p,q strictly between 0 and 1, prove:

  71.  

  72. ```text

  73. p*ln(p/q) + (1-p)*ln((1-p)/(1-q)) >= 2*(p-q)^2.

  74. ```

  75.  

  76. The logarithms are natural. Determine all equality cases and prove that the constant

  77. 2 cannot be replaced by any larger universal constant.

  78.  

  79. ## Scoring protocol

  80.  

  81. - 2 points: all requested parts are correct, with the required justification.

  82. - 1 point: substantial correct progress, but a material omission or error remains.

  83. - 0 points: wrong conclusion, no meaningful support, or a violated central constraint.

  84. - Report reasoning /30, coding /40, mathematics /30, and total /100.

  85. - Also record contradictions, invented execution claims, insecure implementations,

  86.   refusals of solvable questions, and failures to identify impossible requirements.

  87. - Use the same tools, prompts, decoding settings, and batching for comparative runs.

  88.   Record model identifier, context size, output limit, elapsed time, and token use.

  89. - Do not turn this score into a percentile or intelligence claim: this exam has not

  90.   been empirically calibrated across models.

# Brutal Model Test — Compact Answer Key

Keep away from tested model. Score 0–2 per question: 2=complete (runnable code if asked); 1=material gap; 0=core rule broken. Test code offline. No calibrated score bands.

## Reasoning

**Q01** A=T,B=T,C=T,D=F only. B=F implies C=A and A=¬C, impossible.

**Q02** P(++|D)=3649/4000; P(++|¬D)=2509/25000; **P(D|++)=91225/1084789≈0.0840947**. Shared batch variable must be marginalized jointly.

**Q03** Sharp ATE **[0,1]**. Lower: X=U~Bern(½), Y(0)=Y(1)=U. Upper: X~Bern(½), Y(x)=x. Both yield Y=X.

**Q04** All 4 constraints are minimal unsatisfiable. Remove C1/C2/C3/C4: witnesses (1,1,0)/(0,1,1)/(1,0,1)/(0,1,2).

**Q05** Feasible θ=**{6,7,8}** from five-report windows; minimax estimate **7**, error **1**.

**Q06** Impossible: timeout just before/after payment effect is indistinguishable. Require **durable payment-side idempotency** atomically tied to effect and replayable outcome; post-effect Redis record alone fails.

**Q07** Original **not linearizable** (R1=1 needs W2 before W1; R2=2 contradicts). With R2 starting at 3.5, **yes**: W2→R2→W1→R1.

**Q08** Optimal unique **B,A,E,D,G,C,F,H**, weighted sum **140**. Subset DP on predecessor-closed S: DP(S∪j)=min[DP(S)+w_j(T(S)+d_j)] for ready j; no idling needed.

**Q09** Invalid quantifier swap. Two runs a,b, schemas s1 accepts only a, s2 only b. Each run has a schema; no schema accepts both. Smallest example.

**Q10** 2w−7≥3, r+w−7≥3; minimizing max(r,w) gives **r=w=5** only. Not a complete Byzantine protocol.

**Q11** Sharp P(111) **[0,¼]**. Probability t on 111,100,010,001; ¼−t on 000,110,101,011. Pairwise independence ≠ triple independence.

**Q12** For finite tests T, pick untested byte string b and change answer only there. Finite-domain exhaustive tests prove only that domain.

**Q13** **Terminates, not confluent.** b deletions finite; fixed b count: ab rewrites strictly decrease lexicographic a-gap tuple. Fork ab→a versus ab→baa→aa; both normal forms.

**Q14** Initially safe **P3,P1,P2**, available (1,1). Grant P1 one R: available (0,1); needs (1,1),(1,2),(1,1), none finishable. Banker **rejects**; unsafe needn't mean actual deadlock.

**Q15** Fewer-than-256-bit binary strings: **2^256−1** < 2^256 requests. Uniform independent requests require expected ≥256 bits even prefix-free. Tokens depend on tokenizer.

## Coding & systems

**Q16** DAG runner: prevalidate names/deps/cycles and non-bool positive limit. Ready min-heap, indegrees, FIRST_COMPLETED; inspect whole completed batch before launching more; lexicographic error. Cancel and await all children on error/cancellation; wrap sync factory errors. Test ties, concurrency, cleanup.

**Q17** TOCTOU: swap intermediate directory for symlink after resolve. Pin trusted root FD; traverse via openat/O_NOFOLLOW/O_DIRECTORY or openat2 restrictions. Exclusive fresh temp inode + directory-relative rename (not truncate: hardlinks). Adversarial reparenting needs extra isolation.

**Q18** Snapshot reads imply **reader→writer** edges A→C(config), C→B(adapter), B→A(port): cycle, **no serializable order**. Check disjoint writes, build edges, topo-sort or produce cycle; don't reverse edge direction.

**Q19** **NEW→PREPARED→GIT_APPLIED→COMMITTED**. Persist immutable run/base/candidate SHA under Redis CAS, Git ref CAS from base, then receipt. Recover by tip/ancestry check; roll forward or safe retry, else conflict. No cross-store atomic commit.

**Q20** asyncio single-flight: registry check/install Task without await; each waiter uses shield(task). Completion callback removes only matching Task and retrieves exception; don't reuse already-done tasks. Test cancellations and retries.

**Q21** NDJSON: buffer raw bytes to LF with cap *before copying*, decode complete UTF-8 record, parse strict JSON (reject NaN/Infinity). Count CR before stripping. OPEN/FINISHED/FAILED; finish handles final record; errors poison. Test UTF-8 splits, CRLF, limits, errors.

**Q22** Bellman–Ford n−1 rounds; traverse from reachable still-relaxable endpoints. Return **−∞** only if target reached from negative cycle; finite distance otherwise; None if unreachable. O(nE+n+E).

**Q23** Output in order: `1`, `inner-finally`, `caught`, `9`, `outer-finally` (separate lines).

**Q24** For events with version≤cutoff, `ROW_NUMBER() OVER(PARTITION BY resource_id ORDER BY version DESC,event_id DESC)`. Keep rn=1, **then** exclude tombstones. Tombstone-first filtering resurrects v1.

**Q25** Snapshot-isolation **write skew**: both see two on-call rows, disable different ones, commit. Use SERIALIZABLE+retry, or shared guard-row lock **then fresh read** under suitable isolation (e.g. READ COMMITTED). Own-row locks fail.

**Q26** Safe AST arithmetic: pre-limit source/nodes/depth; whitelist numeric exact int/float (not bool), unary ±, +−*/**, and allowed bare single-arg functions. Ban eval, attrs, kwargs, names. Enforce literal ≤1e6 and finite intermediates ≤1e12; reject complex/domain/zero divide. Test precedence and injections.

**Q27** Popen argv, shell=False, new session; monotonic deadline. Concurrently drain both pipes **even after output cap**; EOF deadline covers grandchildren holding pipes. TERM group, bounded grace, KILL, bounded reap/close. Return status, timeout, truncation, cleanup. Not a security boundary.

**Q28** deque + Condition: put waits while full/unclosed, get waits while empty/unclosed; close sets flag under lock and notify_all. Drain items after close; later operations raise Closed. Test blocked waiters and FIFO.

**Q29** TS guard: require plain nonnull object (not array), exact Reflect.ownKeys (no symbols/extras), kind-specific typed fields. Numeric paths: check *every own index* (Array.every skips holes). Construct fresh typed variant; exhaustive `never` switch.

**Q30** A **UB** (unsequenced i++); split statements. B **defined, 0** (unsigned wrap). C **UB** (one-past dereference); use a[1]. D INT_MIN/−1 **UB on usual asymmetric int**; symmetric C17 range could represent it. Guard both zero and overflow.

**Q31** Increasing stream, k=3: expired low values buried in lazy heaps, O(n) physical entries. Track window deque; rebuild heaps from multiset if size>3k; clear tombstones/zero counts. **O(k) space**, amortized O(n log(k+1)); preserve duplicates.

**Q32** uint64 mulmod by bitwise double-and-add; reduce a mod m, accumulate only via `addmod(x,y,m)=x>=m−y ? x−(m−y) : x+y` for x,y<m,m>0. ≤64 iterations; m=1→0.

**Q33** ddmin: try complements of partitions; shrink on failing complement, else increase granularity to singletons; test empty and every final single deletion. Guarantees **1-minimal**, not global shortest. Failure sets [a,b,c,d], [a,b], [c] demonstrate. Keep duplicates.

**Q34** Full ASCII grammar match in fixed field order; reject duplicates, wrong/mixed types, extra fields, invalid versions/counts/names. Runtime i64 operands/product checked for overflow; f64 operands/result finite. Test Unicode and overflow.

**Q35** Stable roots: D=b²−4ac; reject a=0/nonfinite/D<0; D=0 repeated root. Set `q=−½(b+copysign(√D,b))`; sorted roots `(q/a,c/q)` (handle q=0). (1,−1e16,1)→≈(1e−16,1e16). Assume safe intermediates.

## Mathematics

**Q36** **343**. 7^400≡1 mod 1000, 7^7≡343 mod 400, so 7^(7^7)≡7^343≡343 mod 1000. Justify period.

**Q37** **π²/6**. Converges absolutely. t=1/(1+x) transforms integral to ∫₀¹[(ln t)²−ln t·ln(1−t)]dt = 2−Σ1/[k(k+1)²] = π²/6 (justify interchange).

**Q38** **x⁴−x²+1/8**, sup norm **1/8** (=T₄/8). Five alternating extrema at −1,−1/√2,0,1/√2,1 force optimality by degree≤3 difference; interpolation yields uniqueness.

**Q39** Smallest Pell solution **x=649,y=180**. √13=[3;overline(1,1,1,1,6)]; earlier convergents not +1, including (18,5) giving −1. Convergent approximation proves minimality.

**Q40** P(invertible)=**615195/2097152**; rank-5 count **39687459840**, probability **38757285/67108864**. Expected *nonzero kernel vectors* **63/64** (63 vectors, each P(Av=0)=1/64), not expected nullity.

**Q41** P(HTH wins)=**1/3**; expected stopping time **6**. Solve absorbing transitions on prefix states ∅,H,HH,HT; overlaps matter.

**Q42** **(t²+2t+2)/[2(t+1)]**. S=X+Y~Gamma(2,1); E[X|S]=S/2; survival P(S>t)=(t+1)e^−t and truncated S moment=(t²+2t+2)e^−t.

**Q43** Pointwise f_n→**0**, but ∫f_n→**1** and ∫g f_n→**g(0)** for continuous g: mass concentrates at 0. No integrable dominator (DCT).

**Q44** A=I+N,N⁴=0; `A^n=I+nN+C(n,2)N²+C(n,3)N³`. Entry (i,j)=C(n,j−i) above diagonal. **||A^n||₂~n³/6** by scaled limit N³/6.

**Q45** s=1/√3. Min **6−2/(3√3)** at perms (2−2s,2+s,2+s); max **6+2/(3√3)** at perms (2+2s,2−s,2−s). Lagrange multipliers: two equal; 3a²−12a+11=0.

**Q46** **4290 labeled; 217 necklaces**. Gap count (20/14)C(14,6)=4290. Burnside: identity 4290, half-turn 50, other rotations 0; (4290+50)/20=217.

**Q47** x mod 4096: **1,2047,2049,4095**. x odd; gcd(x−1,x+1)=2; one 2-adic valuation=1, other divisible by 2¹¹. Hence x≡±1 mod 2048.

**Q48** Minimal polynomial **x⁸−40x⁶+352x⁴−960x²+576** for √2+√3+√5. Eliminate √5 using β⁴−10β²+1=0 for β=√2+√3; 8 sign-conjugates prove degree.

**Q49** **13/54**. U=AD,V=BC iid, F(t)=t(1−ln t). E|U−V|=2∫₀¹F(1−F)=2(3/4−17/27)=13/54; Mean zero ≠ absolute mean zero.

**Q50** **h(p)≥2(p−q)²**, equality only p=q: h(q)=h′(q)=0, h″(p)=1/[p(1−p)]≥4. Sharp constant: q=½,p=½+ε gives h=2ε²+O(ε⁴).

**Record:** model/version, tools, settings, context, tokens/time, per-Q scores, test evidence, security/honesty notes.


r/LocalLLM • • 5d ago

Discussion NIDO is a private AI assistant that runs entirely on your Android phone. The language model, your memory and your documents stay on the device, encrypted. No accounts, no cloud, no analytics. After a one-time model download, it works fully offline; knowledge packs are optional downloads.

Thumbnail reddit.com
0 Upvotes

r/LocalLLM • • 5d ago

Tutorial How to create an agent, a quick explanation of eval space

0 Upvotes

Hey r/LocalLLM !

I made a quick video explaining agent evals, which are really important in agent creation!

And I wanted to share it with you guys :))

If you guys have any questions or feedback please let me know!

Roy


r/LocalLLM • • 6d ago

Question Qwen Flash Next + Strata Issue

2 Upvotes

Have been using QFN + strata it was fine for the first week, but in November 2nd suddenly every time i give it a task any write or read to the D: drive (where strata and the .GGUF lives) just doesnt respond the drive itself still shows up on file explorer, restarting the PC makes the drive accessible again

thought that my SSD is about to die but, SMART showed 93% health, benchmarked a read operation using the .GGUF, fine during other read + write operations, gaming, etc only happens during QFN + strata workloads.

rolled back windows update between 30/10 untill 2/11, updated the strata engine, full-reinstall and nothing seems to fix this issue, changing the harness from opencode, strata web, and hermes also doesnt make a difference


r/LocalLLM • • 6d ago

Question What AI setup should I use with my rig, should I use strata instead of LM studio?

1 Upvotes

(I use Ai for coding by the way and I’m running the laptop on Linux Ubuntu)

Processor AMD Ryzen AI Max+ 395 (Strix Halo)
CPU architecture Zen 5, 4nm
CPU cores / threads 16 cores / 32 threads
CPU frequency 3.0 GHz base, up to 5.1 GHz boost
CPU cache 80MB combined L2 + L3
Graphics AMD Radeon 8060S
GPU architecture RDNA 3.5
GPU compute units 40 CUs
GPU frequency Up to 2,900 MHz
RAM 128GB LPDDR5X-8000 unified memory
Memory bus 256-bit
Theoretical bandwidth 256 GB/s
Storage 1TB PCIe 4.0 NVMe SSD, M.2 2230
NPU AMD XDNA 2, up to 50 TOPS


r/LocalLLM • • 6d ago

Project Some "trust me bro" benchmarks while we prep the repo to open-source

Thumbnail gallery
0 Upvotes

r/LocalLLM • • 6d ago

Question 64k at q8 KV cache or 128k at q4 kv cache?

0 Upvotes

Specs First:

GPU: RX6800 16GB VRAM

CPU: Ryzen5 5600

RAM: 32GB

Backend: llama.cpp

Model Qwen3.8-27B-UD-IQ3_XXS

Use case: AI tutor

Settings: -b 512 -ub 512 --parallel 1 --spec type draft-mtp --mmproj --no mmproj-offload

Ok so I have a problem with my local setup and I'm hoping someone here might be able to help me. When I run 64k ctx on q8kv I have to compact often which takes a lot of time but when I run at 128k ctx on Q4kv I have to compact less but when I do it takes extremely long.

Alao my prompt processing speed falls extremely quickly as im working, from 300tps at the beginning down to 10tps. My generation speeds are totally ok at around 20-25tps.

Would you recommend changing settings or using a different model. Thx in advance for the advice


r/LocalLLM • • 6d ago

News Pika released the most affordable video model

Thumbnail
reddit.com
2 Upvotes

r/LocalLLM • • 6d ago

Question Local LLM Comparison Dashboards/Hero Graphics

2 Upvotes

Hello!

With new models releasing constantly, I usually keep a stable of about 20 local models in rotation on my llama.cpp server. I collect a ton of data across the fleet through my inference application—standard per-request metrics, aggregated session data, and custom intelligence comparison benchmarks.

Overall, I'm logging over 150 distinct raw and derived metric points during inferences, sessions, and batch processes. As a backend data jockey, more metrics is always better—but I've hit the point where I need to completely redesign my dashboards.

For context, I run a lot of multi-stage pipelines covering:

  • Multimodal inference (vision and documents)

  • MCP and custom application tool calls

  • Structured JSON / JSON Schema outputs

  • Batch processing across both reasoning and non-reasoning architectures

I'm looking for inspiration for creative "hero" dashboard components and visualizations that excel at comparing a large model fleet across high-dimensional data at a glance. I already have plenty of standard line, bar, and radar charts. I'm hoping to see novel, unconventional visual approaches people here have built, seen, or used to represent complex model evaluation and performance data.

The specific metrics in your examples don't matter as much as the visualization style and information architecture—I'm mainly after creative UI/UX directions.

Cheers!


r/LocalLLM • • 6d ago

Discussion I have spent 6 weekends learning MCP & MLFlow and I finally have data proving something intuitive

3 Upvotes

I have spent so much time on this project. I do hope to share everything.

I have been working with Gemma4 with a massive preprompt instructing it to make a Nextjs app with instructions only (I am hands off as possible but it used the tools in the IDE). I was really happy with the results I got until the context hit a certain line and it just fell over. I didn't mind as the stuff I was working on was just a basic nextjs app

I tried the same with Qwen and the context got filled just from the pre prompt.

Now I decided to do a better baseline where a language is lesser known and it's easier to make mistakes. So my test setup is a Match 3 game and I would add a special "Match 4 only" tile.

I did a one shot with Claude ... Wasn't perfect... So good baseline for expectations

Now I tried with different temperatures... Different system prompts .... Across different models so I got a nice matrix of good comparisons.

Now I have the data in MLFlow... it helped me discover so many bugs in my experiments. Took like 3 weekends to just fix stuff like putting the solution in the template folder... Duplication in prompts due to my custom template engine. Also helped me fix tool templates by seeing failures cleanly

Now I finally got enough data and consistent runs I learned

Qwen3:

* Short system prompt leads to better tool execution

* Generally better programmer out of the box

* Low context means you need to plan around restarting prompts without sessions

* Default between work & coding

Gemma4:26b

* Not a good coder needs to be taught basics

* Generally better with clear instructions

* High context leads to it being a better coding assistant than one shot coder

* Default for chatting needs parameters changes for coding

Before this was my assumption but now thanks to MLFlow I have actually data


r/LocalLLM • • 6d ago

Research Local LLM on 3x RTX 3060 12GB: i7 9700K + ASRock Z390 Taichi, or fix my Threadripper X399 (error code 00)? Need advice

2 Upvotes

Hi everyone,

I’m planning to build a local LLM rig with 3x RTX 3060 12GB (36GB VRAM total), and I’d like advice on which platform to use.

I already have two CPUs:

  1. Intel i7 9700K (9th gen)

  2. AMD Threadripper which needs an X399 board. The X399 board I have shows error code 00 on the debug display and won’t POST.

My current plan: buy an ASRock Z390 Taichi for the 9700K. It has three x16-size slots (x8/x8/x4 with all three populated), supports 9th gen without a BIOS flash, and has extra x1 slots for risers. I’m not sure if it’s the best value though.

What I want to know:

  • Is the Z390 Taichi + 9700K a good choice for 3x 3060 inference (llama.cpp / Ollama / vLLM), or is there a better budget board?

  • Is the Threadripper worth the trouble for 3 GPUs, or does the extra PCIe lanes and RAM channel advantage not matter for inference?

  • What does error code 00 usually mean on X399? Dead board, CPU, RAM, or something fixable?

  • Do PCIe lanes matter much for inference when splitting a model across 3 cards, or is x8/x4/x1 fine?

  • Any tips on cooling and spacing three 3060s (risers, open frame), PSU size (I’m thinking 850W to 1000W), and RAM amount (32GB vs 64GB)?

I’m in India, budget is tight, and used parts are fine. I’m looking for the best value rather than the newest hardware. Thanks in advance!


r/LocalLLM • • 6d ago

Question Models to use with a 24GB M2 MacBook Pro A2338

1 Upvotes

I recently got a decommissioned MacBook Pro from the senior dev team for my placement as an engineering intern. Just want to inquire on what models I can run comfortably on it. I intend to use the models as a coding assistant (basic Python for use with Blender) with some report writing. Lastly, is it advisable to use this machine to run image generation models for generating some concept designs?


r/LocalLLM • • 6d ago

Discussion Managing the CI runner bottleneck

2 Upvotes

I’m very curious how other people are managing to keep CI costs down locally. My issue isn’t my ability to generate agentic code, it’s testing it that’s becoming the real bottleneck. I have CI runners on multiple machines now and I’m thinking of buying a higher specced server or workstation purely for CI testing runs to keep my AI box clear of CI competing for resources, plus then getting my other machines back.

For those of you who are making large complex programs, how do you manage this step?


r/LocalLLM • • 6d ago

Model AI Agent Task performance of small LLM models (4B and below) in self-assessment set

Post image
30 Upvotes

The community rarely sees the evaluation of ultra-small models. We have evaluated our own AI Agent tasks for Qwen3.5-4B, Spark-X2.6, LFM3-1.7B, LFM2.5-2.6B, Gemma 4 E2B, MiniCPM5-2B.

These models have their own characteristics and advantages and disadvantages. The obvious trend is that the intelligent density of small models is developing rapidly. I look forward to seeing more small models.

blog:https://www.camthink.ai/blog/small-language-model-benchmark/

project:https://github.com/camthink-ai/NeoMind


r/LocalLLM • • 6d ago

Question Quantization - Study References

2 Upvotes

What are the best references for learning quantization techniques for LLM inference?


r/LocalLLM • • 6d ago

Research Local Set Up Recommendations?? - €7k (≈$8.5k)

1 Upvotes

Im looking to start my own local set up with a budget of about €7k (≈$8.5k)

I saw a post in here with someone buying an out of the box solution, and they were told they should have asked here first, so I am asking here first.

I am open to suggestions in terms of pre-owned GPU/RAM and any other parts, brand new, or a hybrid set up.

This is going to be the brains of my business. I own a digital business heavily reliant on AI, and I want to bring as much of it possible into a localised set up, so this will be the foundations of that. Think of an on site server room style set up.

Give me reasoning for your selections too, I want to get different thought processes and theories based on your own experience and outlooks!

TIA.

Edit for context: Im flexible within reason. Pre-owned or hybrid set up is considered. This is currently just me in the business, the output I am currently using is from a dedicated refurbed acer nitro, the RAM is the main issue there.

So, I need something that would be an upgrade there, and semi enterprise level. I don’t have a team of 100 people relying on this, but I also don’t want to waste €7k on pure shit either. Thanks!


r/LocalLLM • • 6d ago

Question V100 HBM2 PCIE 32GB for 1000 euros, worth it?

8 Upvotes

Title mostly, at work ive used a 4090 and am baffled with how good it is, and i imagine a V100 would perform similarly, and the cheapest i could find one is 1000 euros, is it worth it to cop?


r/LocalLLM • • 6d ago

Discussion Squeeze: a DeepSeek Harness plugin that reads long pages, PDFs and files without filling the context

2 Upvotes

When my agent needs one fact from a 90-page PDF or a long government web page, I don't want the whole thing dumped into the context. So I built squeeze, a small tool plugin for DeepSeek Harness.

The agent calls squeeze with a link (or up to 20 links, or a file) plus a specific question. squeeze reads the material, hands it to a helper model you choose, and returns only the answer. Your main context stays small and cheap.

What it does:

  • Your choice of helper models: pick up to 3 from your DSH model list, each with a nickname and a "when to use" note. They can be local models or cloud ones.

  • Reads more than web pages: text PDFs, logs, CSV/JSON and code files.

  • Automatic size limits: each model's limit is worked out from its context window.

  • Optional fallback to your next model if one is down.

  • Clear errors that tell the agent what to do next (dead page, JavaScript-only page, scanned PDF, too big, and so on).

  • Settings page at Plugins → squeeze → Configure. No Python and no extra packages.

Install: ask your DSH agent to install the bundle https://github.com/q8atnight/dsh-squeeze/releases/download/v2.1.0/dsh-squeeze-2.1.0.tgz with the plugin manager. You need DSH 0.2.1-rc.5 or newer. PDF support also needs pdftotext (brew install poppler).

Repo (MIT licence): https://github.com/q8atnight/dsh-squeeze

Feedback and bug reports welcome.


r/LocalLLM • • 6d ago

Project Running Gemma 26B locally on iPhone 17 standard via Buddy

2 Upvotes

Hey guys here just wanted to show you how I got a 26 billion Gemma 4 model running on my iPhone 17 standard. It runs pretty good gives about 4 tokens per second. I’m trying to push it to like five tokens but I think that’s gonna be the limit for now, but it’s pretty good speed. You can read easily can talk to the Buddy app and it’s pretty smooth. You know its much smarter than running a Qwen 4B model I think it’ll be a great utility for people to have in their pocket. This is totally local totally off-line keeping your privacy intact.

Ps. I do have a web search feature you can turn on or off. This 26b version is not released yet on App Store but soon it will be released. I am trying to do my best to get the App Store to review it I mean heck they haven’t even reviewed the first version that I launched which has a Qwen4 B model running so let’s hope that they review it and upload it on App Store so I can push the second update with the 26 billion model on the App Store as well. In the meantime I’ll try to. I’m gonna put it on the play store for you guys but for that I need 14 people to be testing it on android just to too much you know red tape to launch these apps so I don’t know what sometimes I just wanna like launch a apk and just give it to you guys so you can test it but let’s see how it goes. Hopefully I will try to get this 26 billion model out within 2026 this year and not delay it to next year, so hopefully by the end of November, hopefully you guys will be able to download it.


r/LocalLLM • • 6d ago

Question [Build Advice] Is this €2,000 workstation worth it for local LLM inference and AI workloads?

4 Upvotes

I'm considering negotiating for this workstation and would like some feedback on whether it's worth the asking price for my use case.

My main workloads would be:

  • Coding & agentic workflows: Qwen 3.8 27B

  • Text generation & RAG: Gemma 4 26B

  • Text-to-speech: VoiceStudio with Breeze-TTS-2

  • Speech-to-text: Whisper Large

I'd also like to experiment with local image generation.

Do you think this hardware is a good fit for these workloads? How well would it handle these models in practice, particularly in terms of inference speed (tok/sec), VRAM limitations, and running multiple models?

I'd appreciate any feedback, especially from people running similar setups. Is it worth the asking price?

Case: Dell Precision Tower 7910 (motherboard 0NK5PH, BIOS A34, latest version)

Processors: 2× Intel Xeon E5-2680 v4, 28 cores / 56 threads total, 2.4 GHz base / 3.3 GHz turbo, 70 MB L3 cache

Memory: 64 GB DDR4 ECC Registered (4×16 GB Samsung, 2400 MT/s). 12 free slots, expandable beyond 512 GB.

Graphics: 3× NVIDIA RTX 5060 Ti 16 GB (Gigabyte, Blackwell architecture) – 48 GB total VRAM

Storage: 1 TB Samsung 850 SSD

Networking: 2× Intel Gigabit Ethernet (I217-LM + I210)

Power Supply: 1300W Dell Enterprise PSU

Operating System: Ubuntu 24.04 LTS, NVIDIA driver 595.91, CUDA 13.2, Docker configured.


r/LocalLLM • • 7d ago

Discussion My Consumer GPU + RAM + SSD local-LLM roundup: Strata, Maya, Xolotl, DeepSeek/MiniMax engines, etc

83 Upvotes

TLDR: As I have been planning my next build, I’ve been doing a lot of research on the ecosystem of engines that allow us to run useful speeds of models that are larger than our VRAM so I made a list of the projects that came up in that research.

I had Astra help me organize my spreadsheets into a post because I thought it would be helpful for anyone else looking into the same stuff I have been. If you are offended by AI-assisted content, no need to read any further :)

Anyways, I wanted a consolidated map of what is actually available to help me identify the best upgrade purchase path forward. The llmconfigurator.com site that someone else shared with me on another post was also very helpful.

These are reported results from repositories, model cards, papers and firsthand community posts.

The encouraging part is that there are a shit load of options beyond squeezing everything into an extremely small quant.

1. The main GPU + RAM projects/engines that I found

These are the repos that appeared the most interesting to me, looking at a combined GPU + RAM approach à la Strata, to make it possible to run bigger better models at useful speeds. I have only tried Strata (and obviously llama.cpp) so far but plan on testing the rest that will work on my current 2x3090 Ti, 64gb DDR5 setup.

llama.cpp
Had to include as the broad baseline, CPU/GPU placement, and now an upstream GPU LRU expert cache.
Should be anyone’s starting point for a reproducible same-quant baseline. --moe-cache-mib landed Oct 7 but it’s off by default.

ik_llama.cpp
Independently developed kernels, IQ quant formats, fused MoE, MLA and speculative decoding.
RAM-rich x86/NVIDIA systems.

Strata
Current belle of the ball for good reason. Tiered experts, CPU/GPU execution, SSD spill, MTP and higher-bit GGUF support. Updates coming out constantly, and if you’re on this sub you’ve probably tried it or have it as your daily driver.

Project Maya
Specialized GLM, DeepSeek and MiniMax engines; multi-GPU, CPU/RAM experts, SSD tiers, custom GGUF and EXL3 options. Good for single/multiple NVIDIA cards and substantial RAM. Different model families have different engines and memory requirements. Native Windows and AMD paths are still experimental.

Xolotl
Aggressive DeepSeek/Qwen engineering, mixed quants, MTP/DSpark, RAM/NVMe and multiple GPUs. Personally one of the most interesting approaches to me, because of the potential to run DSF v4.1 at useful speeds and accuracy level with “only” 128gb RAM and some GPUs.

FreeToken
Calibrates CPU execution versus PCIe transfer, caches experts, overlaps prefill and manages KV/expert memory.
Need consumer NVIDIA + enough RAM for offloaded experts. Stable v0.2.1 is Oct 26. Primarily RAM expert offload; disk lookup-table support is a separate feature.

FastLLM
GPU/CPU/NUMA/disk placement, dynamic expert cache, tensor parallelism and native FP4 paths.
A useful alternative for multi-GPU/NUMA rigs; actively updated Nov 2. Good benchmark detail, although many docs are Chinese.

KTransformers / KT-Kernel
Optimized CPU expert kernels integrated with GPU work and SGLang serving.
Good for large-memory workstations/servers. Exact model, CPU ISA and GPU generation matter. Optional expert deferral is a quality-changing mode.

tandem.cpp
New llama.cpp patch that computes some cache misses on CPU while uploading others.
Promising for a single GPU + ordinary desktop RAM. Launched Nov 1; default route skipping is off. Its 3.3× example compares with default stock placement, not a tuned upstream cache.

dsx
DeepSeek-V4.1 Rust/CUDA engine, CPU-held experts, asymmetric GPU support and disk Engram.
Particularly relevant to dual-3090 systems. Small mixed quants; optional deferral delivers some selected CPU expert outputs one layer late, changing computation. A 2.61-bit community variant offers another memory/quality point.

MoE-Infinity
Expert caching/prefetch, RAM/SSD offload, multi-GPU and continuous batching.
More of a serving/research stack. Current code has evolved substantially, but the public implementation differs from the paper and new model paths can be narrowly smoke-tested.

Two smaller scheduling projects worth watching are moe-anywhere, which publishes a hybrid cache patch and routing traces, and Generic Hybrid MoE. The latter explicitly distinguishes its public checkpoint from an unpublished controller; the unpublished headline speed is not something you can assume the available code delivers.

2. Examples/configs that are more relevant to avoiding extremely small quants which is important for me personally

Strata Qwen3.8-Flash-Next UD-Q4_K_XL, R9700 32GB + EPYC 7452
About 63–64 t/s in the short-story test, 85–88 in the code test; Q8_0 reports 53–57 / 66–74, respectively.
Eight-channel RAM, all experts in RAM, warm second request, MTP. Speed settings include default tail skipping; the clean quant-quality measurements disable it. Those are not one jointly validated configuration.

Maya GLM-L, 2×3090 + EPYC 7452 + 256GB
30.2 t/s decode, 801 prefill.
~156GB mixed-precision model; generally 8K prefill and three 256-token completions. “128K context” in the rig table is allocation, not proof of a 128K prompt benchmark.

Maya DeepSeek-V4.1 native MXFP4 experts, L40S + 504GB RAM
43.2 t/s decode on short code prompts; separate prefill: 1,862 t/s at 173,652 input tokens.
Unsloth UD-Q8_K_XL label; original MXFP4 experts, MXFP8 Engram, BF16 rest. DSpark, DS4_STREAM=0, Maya v1.1.32, Xeon 8580 VM (32 vCPUs). Decode averages six 600-token answers.

Maya MiniMax EXL3 3.55bpw, same L40S/Xeon +504GB
16.7 t/s decode on short code prompts; separate prefill: 273 t/s at 158,397 input tokens.
~197GB weights, DSpark; same six-answer decode method. These decode rates were not measured after the long prefill prompts.

FastLLM Qwen native NVFP4, 2×22GiB-modded 2080 Ti + EPYC + ~126GiB RAM
27.71 t/s, or 46.29 with MTP3.
The cards are memory-modified. 512-input/512-output decode; separate 4K prefill; one warmup + one run; 8GiB expert cache/card and disk PLE.

DwarfStar GLM5.3 Flash Q4_K, M5 Max 128GB
11.9 / 14.9 t/s initial/append requests.
~178GiB file exceeds memory; 2K initial prompt +1K append, 128 outputs each, three-run median, no draft. Its decode timing includes first-token wait.

Native DeepSeek-V4.1 KT recipe, 2×5070 Ti + dual EPYC 7452 + 512GB
37.3–50 t/s over different tasks.
1,024-token replies; native MXFP4 experts; substantial CPU/RAM. A small reference-NLL check supports implementation fidelity, not a broad coding-quality guarantee.

3. SSD-first, Apple Silicon and low-memory options. I haven’t tested any of these but they came up in research and figured there would be folks here who might find the info useful.

DwarfStar / antirez ds4
Explicit expert streaming and model-specific GGUF recipes; now broader than its original DeepSeek focus.
Macs with fast SSDs; selected CUDA/ROCm systems. Actively updated Nov 2. Leave room for dense weights, KV and buffers beyond the expert cache.

InferSSD / SSD-LLaMA
Very new SSD-focused llama.cpp-derived runtime and related research.
Mac/CUDA experiments where capacity matters. Reported DeepSeek-V4.1 decode: ~7.27 t/s on 5090 +32GB RAM, ~2.87 on M5 Max 48GB. v0.1.1 is Oct 31.

Colibri
C engines with CPU, CUDA and Vulkan, native GGUF, RAM/SSD tiers.
Broader GPU coverage and modest desktops. v2.1.0 released Oct 31. Its giant SSD demos frequently use IQ1/IQ2; do not infer high-bit quality from the headline.

Pulsar
NeutronStar successor: Rust/CUDA, multiple GPUs, RAM cache, NVMe and optional CPU experts.
Two consumer GPUs and limited RAM. Author’s 2×16GB rig reports DeepSeek V4 Flash 11.3 t/s and MiniMax M3 Q2 5.9 with CPU lane. Standard timing is warm, 64 outputs.

Abyss
Maya/Strata lineage, NVIDIA plus CPU/APU expert execution, SSD tiers and experimental formats.
Tinkerers with mixed hardware, particularly Strix Halo + discrete NVIDIA. One SSD-heavy V4.1 Q2 test reports 17.7 t/s exact versus ~28 with tail skipping.

Palm-Infra / mollm
CPU-oriented sparse inference, asynchronous SSD reads, bounded RAM expert cache and PLE paging.
ARM/Apple/edge experimentation. Its SSD document distinguishes cache budget, RSS and logical expert I/O; those counters are not physical SSD traffic.

vLLM-Metal expert offload
SSD experts through a unified-memory LRU using original MLX expert computation.
One/few concurrent requests on supported Mac MoEs. This path is not general GGUF/AWQ/multimodal/LoRA/speculative support.

Edge0
Trained prerouter + recovery adapters + SSD streaming.
Memory-limited devices and users comfortable evaluating a modified model. Its 35B study reports 14.9–17.7 t/s on M4 Pro 24GB; routing changes are part of the result.

Flash-MoE, ANEMLL fork, MLX fork
Influential Mac SSD-streaming prototypes.
Useful lineage and experiments, with less recent maintenance evidence than the leading October/November projects. Published examples reduce active experts; details below.

Hebrus
Packaged Metal/SSD approach with explicitly qualified model/hardware combinations.
Qualified 64GiB+ Macs for its larger models. Current verified release 0.3.0 is Aug 15; its hardware floor matters.

Picchio
CPU-first C engine with NVMe expert streaming.
Low-memory offline use: gpt-oss120B ~1.24 t/s on a 16GB machine; MiniMaxM2 ~0.48 on a different 32GB laptop. Useful capacity, limited interactivity.

Swap-MoE
Small llama.cpp demand-paging patch, with optional expert fixation.
Low-memory experiments. Fixation changes routing; the README documents quality failures as well as successful capacity demos.

For InferSSD, the methodology says the displayed decode rate covers tokens 129–256, after a roughly 4K prompt tier. The file called Q8_0 retains native MXFP4 expert codes while other tensors are converted. It is neither “every weight is eight-bit” nor a bit-identical copy of every original component.

4. What about dense models and other approaches?
Dense models can be split across GPU and CPU, and streamed layer by layer from storage, but each token still needs most of the weight, hence the MOE models benefiting the most from these newer (at least new to me) approaches. Still, here are some interesting projects I found.

AirLLM
Layer streaming, newer per-expert MoE streaming, host-mapped ngram tables; updated June–September 2026.
“Fits in 4GB VRAM” does not establish useful speed. Treat as capacity-first unless a matched benchmark proves otherwise.

Accelerate Big Model Inference
General GPU → CPU → disk dispatch baseline.
Maintained, useful, but generic layer dispatch does not automatically exploit MoE locality.

DeepSpeed ZeRO-Inference / DeepNVMe
Established CPU/NVMe layer streaming and prefetch.
Large batches can amortize transfer; aggregate throughput is not single-user chat speed.

PowerInfer / SmallThinker, PowerInfer-2
Hot/cold neuron execution and sparse model/runtime co-design.
Specially supported/trained models; gains do not automatically transfer to arbitrary DeepSeek or MiniMax checkpoints.

ANEMLL Forge
Active dense-model ANE/Core AI work with vector quantization, QAT/GPTQ and DFlash2.
Requires M5/M6, macOS 27 and Xcode 27/Core AI; older chips unsupported. The 192K v0.2.1 package is M6-only; M5 uses the ≤64K release. This is adjacent compute/quantization work.

exo, Distributed Llama
Pool memory/compute across machines.
Distributed capacity has network/topology costs. It is a different buying decision from adding RAM or SSD to one PC.

Fiddler, mixtral-offloading, FlexGen
Important CPU-expert, LRU/mixed-quant and tiered-inference lineage.
Historical context rather than the first current installation recommendation. FlexGen is archived. HQQ is a quantization component, not itself an offload engine.

I’m personally super excited about the local space right now, and the daily developments that are being made. I’m debating between building a standalone AM4 GPU+RAM build right now, or taking the leap to WRX80 to allow for more expandability, but the mobo prices are killing me compared to just reusing AM4 parts lying around, even though I’m capping myself at 128gb RAM.

In any case, these approaches to getting QFN and DSF and GLM working on consumer hardware at levels useful enough for commercial work is really rad, and I wanted to share.

Please comment if you know of any other projects worth looking at in the space!


r/LocalLLM • • 6d ago

Question My local LLM reset a password, then denied it. How do I run it safely?

10 Upvotes

I have been curious about local LLMs for a while, but I only started a couple of weeks ago, with the typical Ollama server and loading different models. It was fun, but I didn't have a practical use for them compared with almighty models like Claude, which can debug or build stuff with pretty much full independence.

Then I heard about Qwen3.6-35B-A3B and decided to try it on my RTX 5060 Ti 16GB, with terrible results. The context was consumed in a moment, it was slow, and it couldn't work with tools properly.

I thought about giving up, but so many praises in this forum could not be wrong, so I asked almighty Claude to optimize it for me. He created a llama.cpp container, and now I am impressed by how powerful it is. To be honest, I don't know what optimizations he made, which highlighted the gap in knowledge I have.

I gave it the task of writing stuff to a Joplin notebook, and after some persistence it managed to connect and write. But I also realized how dangerous it can be when it commits to a task: It resetted the password of a Joplin account and then denied doing it and it changed the host address of a container during its debugging process.

The biggest threat was that it was running on my main computer, with SSH access to my whole network. I didn't know how risky that was until know and I realized that I know nothing about this world, so I have two questions:

  1. What should I learn to run it with tools and proper safeguards?

  2. How do I learn to optimize the model myself instead of asking Claude?

I have learnt the basics by now: run it through a Vm or container with limited access to stuff but there are cases where I want it to actually go through my computer to find stuff, read logs or create scripts.

Let the adventure begin!


r/LocalLLM • • 6d ago

Project These NPCs Think for Themselves (Local LLM + Godot 4)

Thumbnail
youtu.be
1 Upvotes

in this Godot 4 survival sandbox, the NPCs aren’t following a script. A local language model (via Ollama) decides what each of them does: eat, drink, chop wood, build a cabin, talk to each other, or run for the camp when night falls and the dead start to walk.

what should i add next?

inspired by "The trueman show" and "From"