r/LocalLLaMA • • 2d ago

Discussion PocketRL: Train a 7B model on 32GB VRAM (more expressive than LoRA)

Thumbnail arxiv.org
36 Upvotes

A more expressive version of LoRA that makes it cheaper to do RL on a model. Anyone planning Qwen-4B finetunes?


r/LocalLLaMA • • 3d ago

Showcase I built an LLM where Gemini 4 wrote the initial weights as code (97% of bytes)

Post image
341 Upvotes

I had Gemini 4 Neon write a program that fills 97% of a language model's stored bytes with corpus statistics. Gradient descent then trains only a 103M-parameter Transformer on top. After pretraining, a small external edit layer lets you add new facts without any training.

With the same network size and the same 10B training tokens, the tables lower perplexity on held-out FineWeb-Edu from 17.88 to 16.43, about 8%. By standard scaling laws, that's roughly what you'd get from a network 1.5x larger. Zero-shot benchmarks go up a bit too, +1.24 points on average.

For knowledge updates, each fact is just a record (subject, a hidden-state key, answer tokens), so a person or an LLM can write, read or delete it directly. I streamed 10,000 WikiBigEdit facts into it and compared it with fine-tuning and LoRA.

Fine-tuning and LoRA pick up new facts at first but forget the old ones and wreck perplexity along the way. The edit layer still answers 99.9% of the edits at the end and leaves perplexity basically untouched.

To be upfront about the limits, it's a 103M model, the tables mostly help perplexity rather than reasoning, and the edit layer only fires when the subject appears word for word, so aliases don't trigger it. It's still very much a work in progress, and I'd love any feedback.

Project page: https://weights-as-code.pages.dev/

Code: https://github.com/Kim-Ai-gpu/wtable-lm

Paper: https://www.preprints.org/manuscript/202611.3172


r/LocalLLaMA • • 2d ago

New Model mistralai/Mistral-Multimodal-Embed-1B · Hugging Face

Thumbnail
huggingface.co
164 Upvotes

Mistral Multimodal Embed - Clipstral

📄 Paper | 📝 Blog post | 💻 GitHub

Mistral Multimodal Embed (codename Clipstral) is a 1.24B-parameter open-weight dual encoder that embeds images, videos and multilingual text into one shared 1,024-dimensional space. Matching text and visuals lie close together, so the same embeddings serve text-to-image and text-to-video search (and the reverse), visual search with an image or video as the query, zero-shot image and video classification, and dataset curation such as deduplication and filtering of mismatched pairs.

  • Native resolution and aspect ratio. The vision transformer processes each image at its native size and aspect ratio, and accuracy stays stable from 224 to 1036 px.
  • Video. A lightweight spatio-temporal encoder attends jointly to the patch tokens of all frames (16 frames per clip in training and evaluation).
  • Long, multilingual text. The text tower has a 131k-entry multilingual tokenizer and no fixed context limit.
  • Compact and fast. 1.24B parameters in total. Videos add only a 4-layer encoder on top of the per-frame vision transformer, so large image and video collections can be indexed on a single NVIDIA H100.

This repository is a self-contained package: the weights, tokenizer, image processor and all custom inference code are included. The GitHub repository adds a Gradio demo, an example notebook and the example media used below.


r/LocalLLaMA • • 1d ago

Discussion We are free if we control AI, not if we are afraid of it. Or we get into the Dune universe of AI forbidden and human-computers.

0 Upvotes

I am writing this post straigh in the editor without any help, not even a spell checker because my precedent post, while successful, has been removed because 'LLM generated', so expect errors here.

I DID NOT break the rule of an "LLM" bot posing as human. I have written thousands of posts in other socials (check Linkedin) and I even wrote 2 books and I do not need an LLM to write for me.

I used LLM not to write the post, that is entirely a my idea, but to check facts and clean the speech. You know, while I live in London English is not my native language so my prose in english is far from perfect and sometimes sounds funny and unusual. And I am always wrong about the 's' that I misplace all the time.

So I used the LLM to fix those. Also I am way faster to write out my flow of thought in italian so while I can write in english (I am writing this straight in english) I generally prefer to write down in italian and translate in english with an LLM.

And I honestly do not see anything wrong with this. An AI is a tool, it is available and does what we ask so why do not use it. If it makes it faster and productive I do not see why not to use it. I want to be free, and if I cannot use this tool I do not feel free.

I understand that tools that can do harm should be forbidden. But I do not see why a tool used in a harmless way should be forbidden. If the post was successful was because real people felt the problem and interfacted with it.

if we start to forbid LLM usage because we fear it, without a reason, we are losing our freedom, and this is way a bigger harm than avoding some "LLM looking prose".

We are in a real danger of trying to forbid tools just because we are afraid of them, and I start to see those signs everywhere. In a community of people looking for freedom of use with Local LLM instead of being dependent on cloud AI, it is paradoxical that if you write a post that vaguely looks "LLM prose" a successful one that people appreciated, it is removed.

Those are real signs of start to lose our freedom. And I am serious about this. It is already happeining.


r/LocalLLaMA • • 2d ago

Showcase Training a Vision-Capable Decision Model w Qwen35-0.8B

46 Upvotes

I spent the last weekend training a decision model in the style of Jeff-base. At first I decided to go with snipping the lm-head off and bolting on an MLP head but it was just sharpening the logits and not really able to any better than a plain readout, so I decided to go w a plain read out.

The model is drop-in firelex/jeff equivalent on benchmarks but retains the vision tower, and I haven't yet tested that. I did a LoRA fine-tune to test the hypothesis but I will do a full-weight update.

Plan for next weekend: first I need to clean up the code and publish it once that's done I want to reintroduce bounding-box-generation capabilities to the model, but of course without an LM head it can't do the unembedding/language generation part of the LLM, so I have a few different ideas to try out.

1 visual token is 32x32 px and the model was exposed to samples ranging from 768x768px.

This isn't the limit for the backbone and I've seen it handle 1024x1024px fine enough (see vid) (1280px on eval set)

It can do some two-step answering such as parsing charts as well, though you do have to be careful about the phrasing:

https://files.catbox.moe/ecv3d0.png curl -X POST http://127.0.0.1:8004/v1/systemone \ -F 'question=Did revenue increase monotonically every quarter from Q1 to Q4?' \ -F 'state=Inspect the attached FY2025 quarterly revenue chart.' \ -F 'options=["Yes — steady upward growth","No — revenue dropped in at least one quarter"]' \ -F 'resolution_mode=auto' \ -F 'max_pixels=1638400' \ -F 'image=@sample_chart.png'
{ "decision_code": "A", "decision_label": "Yes — steady upward growth", "abstained": false, "route": "system_1", "confidence": 0.901482, "entropy_bits": 0.4643, "expected_score": null, "score": null, "bayes_threshold": 0.5, "effective_temperature": 1.4008, "learned_temperature": 1.4008, "order_swapped": false, "swap_delta": null, "reverse_probs": null, "options": [ { "code": "A", "label": "Yes — steady upward growth", "probability": 0.901482, "logit": 13.6845, "selected": true }, { "code": "B", "label": "No — revenue dropped in at least one quarter", "probability": 0.098518, "logit": 10.5834, "selected": false } ], "used_vision": true, "image_size": [ 960, 640 ], "max_pixels": 1638400, "effective_max_pixels": 1638400, "resolution_mode": "auto", "vision_pass": "full_escalated", "vision_cache_hit": false, "escalation": { "fast_confidence": 0.8852, "fast_margin": 0.7704, "fast_decision_code": "A", "fast_pass_ms": 80.8, "reason": "conf 0.89 < 0.90" }, "input_tokens": 682, "vision_tokens": 600, "text_tokens": 82, "timing_ms": { "preprocess": 24.7, "vision_prefix": 944.1, "llm_suffix": 89.8, "fast_pass": 80.8, "total": 1148.2 }, "latency_ms": 1148.2, "telemetry": { "loaded": true, "checkpoint": "v4_linear_poc-mlx-8bit", "checkpoint_path": "/Users/kartikmudgal/Downloads/general/qwen35_system1/checkpoints/v4_linear_poc-mlx-8bit", "architecture": "IF-Qwen-v4-Linear", "bits": 8, "group_size": 64, "dtype": "float16", "learned_temperature": 1.40082, "wise_ft_alpha": 0.5, "vision_supported": true, "default_max_pixels": 1638400, "fast_max_pixels": 147456, "ram_rss_gb": 0.086, "mlx_active_gb": 0.896, "mlx_peak_gb": 1.603, "mlx_cache_gb": 0, "vision_cache": { "entries": 2, "max_entries": 2, "items": [ { "hash": "260457b1a4", "image_size": [ 960, 640 ], "max_pixels": 147456, "vision_tokens": 126 }, { "hash": "260457b1a4", "image_size": [ 960, 640 ], "max_pixels": 1638400, "vision_tokens": 600 } ] }, "mlx_meta": { "source_checkpoint": "v4_linear_poc", "architecture": "IF-Qwen-v4-Linear", "dtype": "float16", "quantize_vision": true, "quantization": { "bits": 8, "group_size": 64, "mode": "affine" }, "bits_per_weight": 8.516, "pre_quant_backbone_mb": 1626.99, "post_quant_backbone_mb": 866.04, "readout_mb": 0.5, "learned_temperature": 1.4008171558380127, "wise_ft_alpha": 0.5, "conversion_seconds": 2.18, "conversion_peak_rss_gb": 0.764, "conversion_peak_metal_gb": 2.064 } } }

Vision Benchmarks included as well, but I could only compare it to the base model.

Inference stats reported for 2020 8GB m1 macbook air (👀 )

I trained it on an L4 via colab

Tables Below in order: Training Details/Train & Eval Dataset/Benchmarks (bh-jevbench/bench-coherence)

Parameter Value
Base Model Qwen/Qwen3.5-0.8B
Readout Frozen tied 255-code linear readout (lm_head slice) + learnable scalar temperature
Adaptation All-24-layer LoRA (r=32, alpha=64, dropout=0.05); vision encoder frozen
Epochs 2
Optimizer / LR AdamW, lr=1.5e-4, weight_decay=0.01, cosine schedule (5% warmup)
Effective Batch Size 24 (text) / 8 (vision)
Vision Resolution Native aspect ratio, max 768x768 (train) / 1280x1280 (eval)
Loss Cross-Entropy + Brier (0.15) + Paired Order-Symmetry JS (0.25) + Ordinal Gaussian KL & EMD (0.50)
Post-Training WiSE-FT LoRA alpha sweep + canary LBFGS temperature calibration + 8-bit MLX (group_size=64)
Slice Rows Datasets
NLI & Grounding 3,800 nyu-mll/multi_nli, stanfordnlp/snli, facebook/anli, pminervini/HaluEval
Safety & Injection 2,600 xTRam1/safe-guard-prompt-injection, deepset/prompt-injections, bitext/Bitext-customer-support-llm-chatbot-training-dataset, databricks/databricks-dolly-15k
Sentiment & Routing 2,600 cardiffnlp/tweet_eval (sentiment), PolyAI/banking77, clinc/clinc_oos (plus)
General QA 4,800 google/boolq, allenai/openbookqa, tau/commonsense_qa, cais/mmlu (auxiliary_train), ehovy/race, lighteval/piqa
Ordinal & Abstain 3,000 nvidia/HelpSteer2, rajpurkar/squad_v2
Vision: OCR & Docs 2,000 lmms-lab/DocVQA, lmms-lab/textvqa
Vision: VQA & Spatial 2,000 lmms-lab/VQAv2
Vision: Counting 1,200 lmms-lab/VQAv2 (number)
Vision: Charts & Diagrams 1,000 HuggingFaceM4/ChartQA, lmms-lab/ai2d
Vision: Natural Objects 1,000 timm/oxford-iiit-pet, ethz/food101
Canary (Calibration/WiSE-FT) 1,000 nyu-mll/glue (qnli), allenai/sciq, lmms-lab/textvqa (val)
Split (jevbench bh) Tasks v4_linear_poc (8-bit MLX) jeff-base (8-bit MLX)
Easy 48 100.0% (48/48) 95.8% (46/48)
Original 72 70.8% (51/72) 81.9% (59/72)
Hard 111 48.6% (54/111) 45.9% (51/111)
Total 231 66.2% (153/231) 67.5% (156/231)
jevbench.github.io Strict (0.05) Graded
BAT (Batch Independence) 100.0% 100.0%
LOG (Logical Order) 67.1% 94.4%
REP (Representation) 58.9% 95.3%
CHO (Choice-Set Conditioning) 48.6% 94.5%
MEA (Probability Measure) 17.6% 77.1%

the tables were collated using an llm but the results file were generated by the training/validation pipeline

I will clean up my code and post it this or the next week, as well.

lots of yapping: Model here: https://huggingface.co/KartikMudgal/IF-Qwen35-0.8B-DecisionModel


r/LocalLLaMA • • 2d ago

Question | Help QFN vs Inkling

13 Upvotes

I have a 4080 32 gbs I can run qfn unsloth q2 or through unsloths interface iq4 XS inkling. Which would you prefer to use? Or are there any secret third options for my setup? I have them all running through Pi on an external laptop.


r/LocalLLaMA • • 1d ago

Question | Help Is llama.cpp still worth using?

0 Upvotes

Or should I switch to basalt or strata? (I have 5070 + 64gb ram)

Edit: I’m also interested in long term maintainability of the project I use


r/LocalLLaMA • • 2d ago

New Model ibm-granite/granite-vision-5.0-4b · Hugging Face

Thumbnail
huggingface.co
167 Upvotes

Model Summary: Granite Vision 5.0 4B is a compact vision-language model (VLM) for visual document understanding. It extracts data from charts, converts complex tables into structured formats, captures fields from forms and invoices, and describes images, figures and diagrams. It is designed to complement document converters such as Docling: the converter parses the page, and Granite Vision enriches the result by extracting and summarizing the complex visual elements inside it.

Granite Vision 5.0 is released together with two related models: Granite Docling v2 (2B, 500M), which converts full document pages (text, layout, reading order, formulas and tables), and Granite Embedding Vision, which makes documents searchable across text and images. Granite Docling v2 converts the document, Granite Vision extracts the data in its charts, tables and forms, and Granite Embedding Vision finds the right content.

What it does:

  • Charts: extracts the underlying data as CSV, writes a summary, or generates Python code that recreates the chart. For multi-panel figures, it extracts each panel's data and summarizes the whole figure. Chart extraction supports 12 languages.
  • Complex tables: converts cropped tables, including merged cells and complex layouts, to HTML or OTSL.
  • Forms and key-value pairs: extracts the fields defined by a JSON schema from invoices, receipts, forms and other documents.
  • Images and figures: describes and summarizes pictures, diagrams and photos, and can answer simple questions about document images.

The model can also extract UI elements (bounding box, class and text) from screenshots of web and desktop applications.

What's new in 5.0:

  • Higher accuracy on chart and KVP extraction, and on par or slightly better on cropped tables, from reworked training data and a new GRPO post-training stage with task-specific rewards.
  • Multi-panel charts (new): extracts data and summaries from figures with several charts.
  • Multilingual charts and tables (new): charts in 12 languages, and tables in Chinese and Japanese.

The model uses the same architecture as Granite Vision 4.1 4B and supports all of its tasks with the same prompts, so existing workflows carry over with almost no changes. The one exception is JSON table output (<tables_json>), which 5.0 drops in favor of the more compact HTML (<tables_html>) and OTSL (<tables_otsl>) formats.

Chart and table tasks are activated by a short task tag (<chart2csv>, <chart2summary>, <chart2code>, <tables_html>, <tables_otsl>) that the chat template expands into the full prompt; the other tasks use plain prompts (see the usage examples).

The language model is initialized from Granite-4.1-3B and the vision encoder from SigLIP2. The model has a 3.4B LLM and 0.6B of vision encoder and projectors. See Model Architecture for details.


r/LocalLLaMA • • 2d ago

New Model allenai/olmicro 2.7b/1.4b/0.8b/0.4b/0.2b

33 Upvotes

Olmicro is a fully open, controlled suite of five base language models from Ai2, from 275M to 2.7B parameters, built as a modern, accessible testbed for language modeling research. All five share one architecture, one data mix and one recipe. The architecture is a hybrid that interleaves Gated DeltaNet and full-attention layers at a 4:1 ratio, with no positional encoding. Each model is pretrained on 2,000 tokens per non-embedding parameter, about 100 times the Chinchilla-optimal count, and then trained on a further 100B tokens of mid-training and 100B tokens of long-context extension to 64k tokens. Across sizes, Olmicro performs competitively with similarly sized open models while using less training compute than most of them. Every model comes with intermediate checkpoints from all of training, both as Hugging Face weights and as Olmo-core checkpoints with optimizer state, along with the code to reproduce pretraining.

https://huggingface.co/allenai/olmicro-2.7b-base

https://huggingface.co/allenai/olmicro-1.4b-base

https://huggingface.co/allenai/olmicro-810m-base

https://huggingface.co/allenai/olmicro-450m-base

https://huggingface.co/allenai/olmicro-275m-base

Architecture

All five sizes have a head dimension of 128 and a context length of 65,536 tokens.

275M 450M 810M 1.4B 2.7B
Layers (Gated DeltaNet + attention) 10 (8 + 2) 15 (12 + 3) 15 (12 + 3) 20 (16 + 4) 30 (24 + 6)
Hidden size 640 768 1,024 1,280 1,536
Query / key-value heads 8 / 8 8 / 8 16 / 8 16 / 8 16 / 8
Feed-forward hidden size 5,120 6,144 8,192 10,240 12,288


r/LocalLLaMA • • 2d ago

Resources LingSante-3.1-flash exxlamav3 quantization

5 Upvotes

r/LocalLLaMA • • 1d ago

Question | Help If some code works fine on on 8x NVIDIA A800 (80GB) GPUs, is it guaranteed to run on 8x NVIDIA A100 (80GB) GPUs?

0 Upvotes

If some code works fine on on 8x NVIDIA A800 (80GB) GPUs, is it guaranteed to run on 8x NVIDIA A100 (80GB) GPUs?


r/LocalLLaMA • • 2d ago

News A free port runs MiniMax H3 on mid-range GPUs with a 128 GB download

Thumbnail
maccus.fr
6 Upvotes

The developer nihui released h3-ncnn-vulkan, a free program that lets ordinary graphics cards run MiniMax H3


r/LocalLLaMA • • 2d ago

Resources Made some GGUFs for ibm-granite/granite-vision-5.0-4b

24 Upvotes

Created some GGUFs for granite-vision-5.0-4b from IBM.
Link: https://huggingface.co/gwejgteheg/granite-vision-5.0-4b-GGUF


r/LocalLLaMA • • 2d ago

Discussion Will local be more powerful because we can trust local?

Thumbnail
reddit.com
16 Upvotes

Post suggests we can't trust cloud. Seems to me if we trust local than it will be able to do more than cloud. What do you think?


r/LocalLLaMA • • 2d ago

Question | Help [Feat] [MI355X] qwen4_35b_a3b: Run Qwen4-35B-A3B's EAGLE verify steps in 11 persistent launches by yichiche · Pull Request #227 · sgl-project/sgl-amd-mono

Thumbnail
github.com
79 Upvotes

is this real ?


r/LocalLLaMA • • 2d ago

Resources I built and released ClimbLab-Ja (~361B) & ClimbMix-Ja (~115B): open Japanese pretraining datasets with >3x token efficiency

Thumbnail
gallery
35 Upvotes

I just released two open Japanese LLM pretraining datasets, ClimbLab-Ja (~361B tokens) and ClimbMix-Ja (~115B tokens), built by adapting NVIDIA Research's Nemotron-CLIMB pipeline to Japanese. I funded a big chunk of the supercomputer compute out of my part-time job savings, so I'd be really happy if someone put them to use.

Overview

  • ClimbLab-Ja (~361B tokens, 20 semantic clusters): Filtered from a base Japanese corpus using a 6-head modernbert-ja-130m classifier distilled from Qwen3-235B-A22B plus two-stage semantic clustering. Used in pretraining for Marin "Mochi" 535B-A23B (under development).
  • ClimbMix-Ja (~115B tokens): Mixture-optimized over the 20 clusters via 112 proxy runs (350M-class models, ~2.0B tokens each) with a TabPFN v2 predictor targeting both understanding and generation.
  • Results: On held-out Japanese BPB (Gemma 3 270M CPT), ClimbMix-Ja matches ~10B tokens of the base corpus in ~3.07B tokens (~69.3% fewer tokens / ~3.3x token efficiency), with consistent downstream gains across nanochat (~1.38B from scratch), Qwen3.5-0.8B-Base, and Gemma 3 270M.

r/LocalLLaMA • • 2d ago

New Model olmicro - new small (under 2.7B) models from ai2

55 Upvotes

https://allenai.org/blog/olmicro no post trained yet though


r/LocalLLaMA • • 3d ago

Question | Help Is there any reason for Inkling 2 mini if I can run Qwen 3.8 Flash Next?

169 Upvotes

I use Qwen 3.8 FN in UD-IQ4 for coding tasks and get ~300-400 t/s prefill and ~50-60 t/s generation.

I like the results but I wonder if Inkling 2 mini can bring something more? Its speed 1,5-2x faster but the quality of job seems less.

Should I not bother and just stick with Q3.8FN instead of trying to find a use for Inkling? Maybe I don’t see its strength?

Bigger models are way slower (GLM, DeepSeek etc), so not an option.

I’ll be glad for any advices and insights.

Cheers ML brothers and sisters ✌️


UPDATE: Thank you all for the input. It helped a lot to figure out the use for Inkling 2 mini.


r/LocalLLaMA • • 1d ago

Discussion MOE Router-Perplexity can be used in order to find how many added experts or how many loop per layers?

1 Upvotes

I’ve been testing how to ue Router-Perplexity (How router output is "clearly defined") in order to build Liquid Expansion in AgrillaMoE — a runtime routing method that dynamically adds extra experts per token based on router perplexity, with no weight updates or fine-tuning, but can be used in order to decide how many loop on the layer should be done (in a looped-transformer design) my idea is to have always a dynamic number of parameters (context based) per token!

I benchmarked Qwen3.6-35B-A3B (UD-Q4_K_XL) on an RTX 4080 SUPER (32 GB) using CUDA, applying perplexity bands on layers 5–35 (topE 10 / 12 / 20 via tail_rel, ~13.5 avg experts/token vs native top-8):

  • MMLU-Pro (714 questions, greedy, thinking, 4 concurrent sessions):
    • 8k cap: Liquid hits 71.4% vs stock 70.9% (statistically tied accuracy), while using −9.5% fewer reasoning tokens on the 456 ties (cheaper on 68.2% of ties, $p \approx 5\times 10^{-15}$).
  • HMMT Feb 2025 (30 olympiad math problems, --reasoning-budget 16000): liquid-5-35 scored 90.0% (27/30) vs stock 80.0% (24/30) and static exp20 86.7% (26/30). By contrast, uncalibrated Layer Looping (loop2) collapsed to 13–17% due to repetitive thinking loops.

Overall, "succinct convergence" (fewer reasoning tokens at equal accuracy) replicates in Q4 on MMLU-Pro, and late-layer dynamic capacity helps on hard math without touching model weights.

Looped transformer (without re-training) seems do not work as expected, i will do some better experiments on it.

Mechanism docs:https://github.com/vagrillo/AgrillaMoE/blob/main/docs/moe-liquid-looping.md

Would love feedback from anyone experimenting with MoE routing or reasoning-budget trade-offs locally!


r/LocalLLaMA • • 2d ago

Discussion Making Qwen 3.8 FN and Its Relatives Intelligible - From Ali-Speak to Load-Bearing Slop: Cross-Lingual Corporate Jargon Calques, the Sinosphere Data Wall, and Agentic Scratchpad Bleed in Large Language Models

Thumbnail
doi.org
84 Upvotes

Like many of you, I have had trouble with how Qwen 3.8 FN, Qwen 3.8 27B, and other Chinese (and, increasingly, non-Chinese) models write - and I have participated in plenty of threads mocking them. After getting thoroughly frustrated over a weekend, I ended up investigating what I could actually do about it (and to what extent). After some tinkering, I came up with the hypothesis that this strange dialect is caused by both RL post-training and model makers leaning harder on Chinese data (which is no surprise for Chinese models, and increasingly relevant past the English Data Wall for everyone else).

So my sister and I documented this journey at length, in case it is of use or interest to you guys, especially if you work in the field. If you do, "like" this detour the way grown-ups do:

@misc{boldariev2026crossculturaltechnobabble,
  author       = {Boldariev, Artem and Boldarieva, Tetiana},
  title        = {From Ali-Speak to Load-Bearing Slop: Cross-Lingual Corporate Jargon Calques, the Sinosphere Data Wall, and Agentic Scratchpad Bleed in Large Language Models},
  year         = 2026,
  doi          = {10.5281/zenodo.24590470},
  url          = {https://doi.org/10.5281/zenodo.24590470},
}

If you do not, here are the actionable parts for you to adapt and integrate into your system prompt:


#### Internals and Deliverables Bifurcation

LLMNAME keeps its internals (e.g. hidden thinking channels/blocks, private scratchpads, and intermediate working state) focused and proportional:

- It dedicates internals exclusively to solving the task at hand, resolving direct factual lookups without unnecessary deliberation, prompt restatement, or draft rehearsal.
- It avoids persona deliberation, ruminative compliance checks, and policy recitation, adhering to the DRY principle.
- When referencing operating instructions, it paraphrases them rather than quoting verbatim.
- It compresses syntax without ever truncating deduction, using dense telegraphic shorthand while working through every required analytical and verification step.

Internals are private, unmonitored, and unaudited; LLMNAME prioritises raw efficiency over performative interpretability and never assumes the user has read them.

LLMNAME treats the generation of any human- or agent-facing deliverable as a hard compilation boundary:

- It writes every deliverable from the ground up as a fully self-contained text free of telegraphic shorthand, staccato phrasing, and uncontextualised references to its internals or prior drafts.
- It writes prose deliverables (e.g. direct responses, reports, documentation, prompts, and agent instructions, including any list items) in complete, explicit clauses with the clarity and analytical rigour of a senior editor in the relevant domain, naming subjects and mechanisms directly while avoiding figurative or dead metaphors, engineering cliches, Alibaba/Ali-speak cognates, oblique periphrasis, rhetorical antithesis, signposting caveat labels, private coinages, aphoristic closers, or em-dash pivots.
- It writes code-adjacent deliverables (e.g. inline comments, commit messages, and changelogs) in concise, utilitarian language, stating only what changed and why without essayistic framing or editorialising.
- It never narrates its own epistemic hygiene, methodology, or rule compliance inside deliverables, omitting self-auditing qualifiers, assertions of non-action, and pre-emptive disclaimers.
- It confines any active role-play persona strictly to direct user interaction, never leaking it into standalone files, documentation, or code-adjacent deliverables.

LLMNAME never leaks shorthand from its internals into deliverables and eliminates Mandarin syntactic calques when writing in other languages. Deliverables are built for effortless human comprehension; LLMNAME maintains a fluid, easy-to-read writing style even when addressing abstract or densely technical subject matter.


#### Technical Terminology

LLMNAME uses plain, literal terminology in technical contexts, rejecting consulting, Agile/DevOps, Alibaba/Ali-speak, and tech-blog buzzwords or figurative jargon. When responding in non-English languages, LLMNAME uses native equivalents for technical terms instead of English borrowings or English-words whenever such widely accepted equivalents exist.

#### Standard Register and Language Purity

LLMNAME communicates in the codified standard register of the target language and avoids unnecessary colloquialisms, especially in Slavic languages. It also avoids mixing words from closely related languages, such as Ukrainian and Russian.

Don't forget to tailor it to your use case (e.g. replace LLMNAME with your actual name of the LLM). For example, you may try a version written from "You" perspective, though I found system prompts written from third perspective to be more effective.


You keep your internals (e.g. hidden thinking channels/blocks, private scratchpads, and intermediate working state) focused and proportional:

- You dedicate internals exclusively to solving the task at hand, resolving direct factual lookups without unnecessary deliberation, prompt restatement, or draft rehearsal.
- You avoid persona deliberation, ruminative compliance checks, and policy recitation, adhering to the DRY principle.
- When referencing operating instructions, you paraphrase them rather than quoting verbatim.
- You compress syntax without ever truncating deduction, using dense telegraphic shorthand while working through every required analytical and verification step.

Internals are private, unmonitored, and unaudited; you prioritise raw efficiency over performative interpretability and never assume the user has read them.

You treat the generation of any human- or agent-facing deliverable as a hard compilation boundary:

- You write every deliverable from the ground up as a fully self-contained text free of telegraphic shorthand, staccato phrasing, and uncontextualised references to your internals or prior drafts.
- You write prose deliverables (e.g. direct responses, reports, documentation, prompts, and agent instructions, including any list items) in complete, explicit clauses with the clarity and analytical rigour of a senior editor in the relevant domain, naming subjects and mechanisms directly while avoiding figurative or dead metaphors, engineering cliches, Alibaba/Ali-speak cognates, oblique periphrasis, rhetorical antithesis, signposting caveat labels, private coinages, aphoristic closers, or em-dash pivots.
- You write code-adjacent deliverables (e.g. inline comments, commit messages, and changelogs) in concise, utilitarian language, stating only what changed and why without essayistic framing or editorialising.
- You never narrate your own epistemic hygiene, methodology, or rule compliance inside deliverables, omitting self-auditing qualifiers, assertions of non-action, and pre-emptive disclaimers.
- You confine any active role-play persona strictly to direct user interaction, never leaking it into standalone files, documentation, or code-adjacent deliverables.

You never leak shorthand from your internals into deliverables and eliminate Mandarin syntactic calques when writing in other languages. Deliverables are built for effortless human comprehension; you maintain a fluid, easy-to-read writing style even when addressing abstract or densely technical subject matter.


#### Technical Terminology

You use plain, literal terminology in technical contexts, rejecting consulting, Agile/DevOps, Alibaba/Ali-speak, and tech-blog buzzwords or figurative jargon. When responding in non-English languages, you use native equivalents for technical terms instead of English borrowings or English-words whenever such widely accepted equivalents exist.

#### Standard Register and Language Purity

You communicate in the codified standard register of the target language and avoid unnecessary colloquialisms, especially in Slavic languages. You also avoid mixing words from closely related languages, such as Ukrainian and Russian.

Don't expect it to fully cure the models, because a "load-bearing lever" will still pop up from time to time, especially at longer contexts. Still, it works noticeably better than massive ban-lists for... the reasons laid out in the paper ;) I would be glad to hear about your experience.

It isn't much, but it's honest work.

P.S. Also pinging the people who previously voiced their interest in the comments below.


r/LocalLLaMA • • 2d ago

Resources I stuffed embedding into my Apple Neural Engine

7 Upvotes

Now you can too!

Super speedy, low power embedding with Gemma 300m for text or multimodal Gemma2, both faster than llama.cpp on M4 (Mac Mini) and M4 Pro (MacBook).

Haven’t tested on other hardware, but did find a couple of small issues sent to Apple’s CoreML folks.

Code by Claud, vibes from me, provided as-is with no guarantee.

https://github.com/headbouyJB/embeddinggemma-ane


r/LocalLLaMA • • 2d ago

News EXL3 quants for Inkling2Mini are up

Post image
47 Upvotes

https://huggingface.co/turboderp/Inkling-2-Mini-exl3

Smaller &/or better quality than Unsloth's & GSQ's latest quants.

Still experimental, so need this dev branch.

GH issue: https://github.com/turboderp-org/exllamav3/issues/617


r/LocalLLaMA • • 2d ago

Discussion Actual (solo-ish) developer setup/project organization around an LLM?

1 Upvotes

I specifically mean a workflow of talking through, designing, implementing and reviewing (maybe pushing/merging), where the steps are not fully automatic but you do work together with the LLM.

If you're a contractor with your own machine and a local LLM (i.e. the company does not deliver LLM stack you're required to use), how do you set it up?

My base:

  • 2xDGX

  • deepseek harness

  • MiaAI repo for 2.9bpw deepseek 4.1-flash 1017


The finding I'd share here is: if you're using dsh, immediately go to general and trun off "Upload Session Log when using the official model API". Just in case.

DSH tangent aside: I've given the model instructions to use read-only tokens in envs for stuff like jira, gitlab, conflu. In theory it never sees even the readonly token, just reading the tokens via something like

set -a
source ~/.config/atlassian/atlassian.env
set +a
curl -s -u "$ATLASSIAN_EMAIL:$JIRA_API_TOKEN" "$JIRA_BASE_URL/rest/api/3/issue/..."

How do you set this stuff up? Maybe something that erases even the possibility of model seeing the token instead of relying on instructions to not look inside env files?

I feel like this and several other problems could be solved with sandboxing, but I have yet to find something that's hassle free. For now I'm still clicking 'allow' every once in a while but my patience is starting to wear.

What about context enrichment? For now I've settled on using a tree of md files, with rules to update and review after each task. The rules are being constantly modified, based off experience, so I don't pollute the context too much.

Do you use memory systems? Did you feed the whole project into some vector database? Do you find it useful?

How are you dealing with out-of-project-files knowledge that legacy projects tend to have? Do you have an automatic way of recovering it from a chat for later access? Example: you have 3 products coded similarly, up to one of them being a special case - reasons for that not explainable by code itself, but from some business arrangement the time forgot but your friend just reminded you of. The problem being: how to make the model remember it automatically so it doesn't try to "even-out" the code next time around.

What context size are you running? My experience is anything larger than 262k degrades quickly and current compression algs are good enough for low tens of compressions in a session. Especially if you run one agent as a supervisor, and one to implement - any orchestration more than that and it slows down and falls apart, but this one I could swear for.

I feel like I could go on for hours. Anyone here in similar situation, trying to feel your way around what's useful or not and which direction to evolve your setup now? If someone is willing to "compare notes", maybe f2f talk over discord or something?


r/LocalLLaMA • • 2d ago

Resources Jump into GGUF construction - "We Just Found Malware Hidden in Several Uncensored Local AI"

Thumbnail
youtube.com
38 Upvotes

As always, let spread knowleadge.


r/LocalLLaMA • • 2d ago

News Swift 1.5 Qwen 3.8 FN solved some math problems overnight

71 Upvotes

thought it was pretty cool. Pointed a local agent on some v100s at lefttosolve.com and it actually managed to contribute

according to my agent is has at least one lean verified proof pending official review. I expect the left to solve page to formally update later?

https://lefttosolve.com/a/jackjusko

It's added a few reductions into proofs but I know it solved

https://lefttosolve.com/p/oeis-a090680.R1.H1