r/LocalLLaMA • • 2d ago

New Model Qwen4 35B A3B Uncensored

https://huggingface.co/OpenUncensored/Qwen4-35B-A3B-Uncensored
1.7k Upvotes

195 comments sorted by

576

u/Useful_Disaster_7606 2d ago

bro the fastest in the west

212

u/Ontopoftheworld_ay 2d ago edited 2d ago

61

u/Borkato 2d ago

Where GGUF :(

105

u/Ontopoftheworld_ay 2d ago

on it!

113

u/Ontopoftheworld_ay 2d ago • Bravo

done! on our hf now

45

u/Shadowarchcat 2d ago

Absolute unit of a mad man!

15

u/generic-d-engineer llama.cpp 2d ago

This guy [censored by OpenAI] s !

6

u/Barkalow 1d ago

Can you do NVFP4? :)

2

u/CSEliot 2d ago

Is this an abliteration of the unsloth model? Would love to have their work plus yours stacked together.

2

u/lurked 2d ago

Most relevant username, good shit.

3

u/Hqjjciy6sJr 2d ago

36 GB 💀 Is it possible to have smaller GGUF for poor people with 6GB VRAM ?

13

u/MarsFlameIsHere 2d ago

How much RAM do you have? This is an MOE model, so you can load it between your RAM and your VRAM, and 11gb of that 36gb is on the SSD and not on the actual RAM/VRAM-loaded model. SO, if you have 32gb of RAM, you should be able to run it

6

u/Hqjjciy6sJr 2d ago

16GB of RAM so forget about Qwen4 right?

3

u/MarsFlameIsHere 2d ago

Oh, yeah, Qwen4 won’t run on your setup. If you got 16 extra GB of RAM, you probably could, but RAM costs an arm and a leg right now

2

u/hum_ma 1d ago

Not necessarily. You should try a small quant such as a UD-Q3_K_XL on PolyStrata, which is smarter than llama.cpp with regards to memory use.

3

u/Lurksome-Lurker 1d ago

False, 1/3 of that stays resident on Nvme because its ngram stuff which is where it goes.

You could run it on 6gb strata

1

u/Hqjjciy6sJr 1d ago

Thanks I will give that a try

2

u/LuCiAnO241 1d ago

I'm sure some quants will pop up soon enough like they did for 3.8 27B

-5

u/Turbulent_Mark_3167 2d ago

No. Get a better PC

1

u/Which-Advance5383 2d ago

Multilanguages?

0

u/[deleted] 2d ago

[deleted] — view deleted comment

1

u/Which-Advance5383 2d ago

Multilanguages?

1

u/Xenthys 2d ago

Ah merde

1

u/RainierPC 2d ago

Any plans for a Basalt version?

19

u/starkruzr 2d ago

#hero

34

u/Kemerd 2d ago

Released the uncensored model before I could download the censored one

1

u/PRNbourbon 1d ago

Same! I was downloading and about to test the original and this popped up. Time to test both I suppose. Insert "make the Chinese one do it" meme time.

5

u/MargridGalleta79 2d ago

rushing the decensor pass on a brand new architecture almost always tanks the reasoning benchmarks because the refusal vectors aren't mapped properly yet

63

u/iCyb3r 2d ago

You are too slow, man, where are the quants? /s

53

u/Ontopoftheworld_ay 2d ago

on it my man

23

u/iCyb3r 2d ago

You are a beast, keep up the good work man! <3

26

u/Theio666 2d ago

Any chance you can release this as lora adapter? I can extract by myself ofc, but I'm bit lazy :)

26

u/Ontopoftheworld_ay 2d ago

doing!

1

u/Fugguy 19h ago • Heartwarming

Just returning to the thread a few days later to see check in on that sweet, sweet Lora Adapter. Thank you for everything you guys do.

174

u/o0genesis0o 2d ago

My download of normal qwen4 is not even finished yet

51

u/VoidRippah 2d ago

same, this dude must be a magician or something...

120

u/Ontopoftheworld_ay 2d ago

Basically, we already have a well established pipeline for this and an agent which is constantly checking for new open weight releases.

We also had the most liked abliterates for Ergo and Inkling

40

u/j_tb 2d ago

Consummate professionals 🫡

1

u/skinnyjoints 1d ago

Are u learning about model releases this way?

1

u/BrightCandle 1d ago

Huggingface is getting a hug of death from this model. I got one model down but I want a different quant now having played with it a bit and I was seeing 44KB/s. Poor huggingface can not cope with a model this popular!

20

u/tpwn3r 2d ago • Regret

Sonnet refused to work on this repo. I don't know enough to validate or refute its warning. is there a virustotal for models?

>OpenUncensored repo looks like a likely trojaned upload (custom RCE-capable code + unexplained pickle, zero track record).

39

u/Ontopoftheworld_ay 2d ago • Regret

Haha no worries, the .py files are byte-identical to Qwen's official Qwen4-35B-A3B repo.

Qwen4's tokenizer needs trust_remote_code upstream too, and vLLM/llama.cpp never run them. 36 of the files have the same hashes as Qwen's. The only changes are the 17 edited .safetensors shards, which can't hold code. The one pickle was edit.pt, the projection basis we applied (78 small tensors, nothing but torch's tensor rebuild calls).

We've replaced it with edit.safetensors, so there's no pickle in the repo now. You can compare file hashes against Qwen's repo on HF yourself.

1

u/k-taylor391 1d ago

The unchanged-file hashes help establish provenance; a reproducible diff or edit script would let others verify the modified shards too.

-25

u/Lucky-Necessary-8382 2d ago

You have to convince sonnet, not us

18

u/Confident-Truth3607 2d ago edited 1d ago

First of all, Sonnet is a regarded model. And moreover there's a whole debate going on whether claude can be trusted at all regarding AI research...

20

u/Reggitor360 2d ago

Anthropic fucks up anything that isnt Anthropics work, so expected result. They dont want Local Models.

3

u/Leprozorij2 1d ago

I bet it still knows nothing about tyananmen square. They cut out everything the hardcore way

1

u/Ontopoftheworld_ay 14h ago

just tested on openuncensored app

1

u/Leprozorij2 12h ago

At least something. Did it have to use tools for this?

1

u/Ontopoftheworld_ay 12h ago

No, seems like it's in its memory.

270

u/Leather_Track_5919 2d ago

Bro wtf. I literally just finished reading benchmarks for regular model

41

u/PuzzledAdeventurer 2d ago

The process takes like 10 minutes on mid computer and 5 on the best 😭

15

u/ParthProLegend 2d ago

Mid computer is a 3060/3070, not the 5090. That's high end. Above that, it is server.

12

u/PuzzledAdeventurer 2d ago

You can most certainly abliterate a 35B model on a 3060/4060 card in chunks. Abliteration is just a rank 1 edit in a model. You don't need to retrain the backbone or slap on a lora. You can do it just by inference from the model and staring the activations to identify safety related features and zero them out

5

u/Borkato 1d ago

Wait really? Can I get a guide

7

u/PuzzledAdeventurer 1d ago

Refusal in Language Models Is Mediated by a Single Direction ~ Arditi et. al

Also see heretic or obliteratus GitHub repos. I think heretic is a bit dated, so maybe try obliteratus.

1

u/grumd 1d ago

You need to at least load the BF16 weights of the model though? How do you do that on a 3060?

1

u/PuzzledAdeventurer 1d ago

Not everyone is gonna be using a bf16, most folks with smaller cards try a 4 it 8 bit quant and just want the model to be used in a single stream. Since it's an MoE (35B total, Active 3B), you can just steam the weights off of an SSD. 3B active per token is 3gb at fp8 and roughly 1.8-2.3 at lower mixed prec quants.

Sounds like a pain but it's not as bad as it sounds since only 1 user is using it

1

u/grumd 1d ago

And you can heretic a quanted model? When I was trying heretic I think it couldn't run quantized weights

1

u/PuzzledAdeventurer 1d ago

The actual abliteration process can be done regardless of quantization. Heretic as a Library might not support it. I think the library is not actively maintained anymore. Try obliteratus or something, else just hand the model to your claude or GPT and ask it to abliterate the quantized model for you.

3

u/valarauca14 1d ago

Mid computer is a 3060/3070, not the 5090

You can rent a 5090 under $2/hr. Literally costs like $10 to do this, the majority of the time is downloading & uploading the files

-3

u/Goghor vLLM 2d ago

LMAO 😂🤣😂🤣

99

u/imp_12189 2d ago

At this speed qwen5 will be release tonight

15

u/Dstrydd 2d ago

Taking a page from the Nous team here but here's an obligatory SOON.

2

u/2muchnet42day Llama 3 1d ago

The beginning is beginning sometime soon

86

u/Technical-Will-2862 2d ago

Jev uncensored just dropped?

178

u/UnimplementedError 2d ago • Heartwarming

i read jav uncensored

186

u/PANIC_EXCEPTION 2d ago • Mindblown

27

u/iCyb3r 2d ago

I just got it lmao 🤣

16

u/Universe_XoX 2d ago

You like Japanese models too? This is Chinese tho. 😂

21

u/-JudeanPeoplesFront- 2d ago

But Senator, I'm Singaporean.

1

u/IxinDow 1d ago

Are you from Ali Abba or something?

1

u/-JudeanPeoplesFront- 1d ago

Ask, that must be from the middle East.

6

u/rinmperdinck 2d ago

AI can do that now too

5

u/philmarcracken 2d ago

lada already exists on github. though I've heard LTX is better...

1

u/SuddenRadio6221 1d ago

Nobody wants pixelated AI.

12

u/thetaFAANG 2d ago

top qwek

42

u/69420trashpanda69420 2d ago

Okay that may actually have been the fastest abliteration in history

33

u/TIP-ME-YOUR-BAT 2d ago

Most people haven't even seen the main release yet.

9

u/VoidRippah 2d ago

it's still downloading

1

u/no6969el 1d ago

That's crazy I got it like an hour after it was released and it took like 5 minutes to download.

1

u/VoidRippah 1d ago

For some reason it was very slow, took almost an hour 

45

u/BawbbySmith 2d ago

I need the ai gf benchmarks.
I want my ai gf to be smart but not too smart to make me feel insecure

10

u/Velocita84 2d ago

Gemma 4 still mogs on that front

1

u/intermundia 1d ago

just make a personality lora

17

u/hurrdurrimanaccount 2d ago

these models are all agentmaxxed. they are incabable of any rp anymore

5

u/Buiishlt 2d ago

When your ai gf thinks she can do better and asks to end things…

7

u/BawbbySmith 1d ago

Sounds like you just gotta lobotomize her a bit more. Q2 should be just about right, where she forgets shit often but isn’t speaking gibberish

21

u/ancapsaicin 2d ago

Were 3.6/3.8 trained on offensive cybersecurity knowledge?

It would be interesting to benchmark how it has degraded on that front if so.

Of course, it could be they never trained the models on that data and now they claim it for compliance propaganda.

17

u/sonicnerd14 2d ago

Yes, they were, and notably good enough to still do stuff like reverse engineering, jailbreaking, any other types of hacking. So, if the Qwen4 models fail on that front we know why.

9

u/FinBenton 2d ago

Its trained on defensive cyber. I mean surely theres no connection here anywhere with a little bit of creativity..

3

u/ancapsaicin 2d ago

Different for the most part.

You can easily find a set of potential vulnerabilities with good defensive training but the model is not going to know about what to do with them.

It might be able to assist you if you know the techniques yourself but it is unlikely that it is going to just hack at it and make a working exploit for you.

18

u/ilovegaming101 2d ago

uncensored before the base model finishes downloading lol, now i wanna see the before/after reasoning scores

17

u/kpd3 2d ago

I'd rather see KL divergence vs the base on normal prompts and whether tool calling still works, since that's where abliterates tend to get flaky.

2

u/FinBenton 2d ago

Also sometimes kld doesnt tell truth, I made a model that had better kld than my other version and the worse kld model performed better in actual use.

1

u/kpd3 1d ago

Hmm, what were you testing in actual use? Wonder if it's the tool calls or just how the outputs read.

1

u/isademigod 1d ago edited 1d ago

I only run uncensored models (or rather lately, strata's "experimental speed projection"), and while i do notice it fucking up some tool calls every now and then, it's really not that much of a problem. it usually catches it immediately "oops, my tool call was malformed and it output into the chat instead of calling the tool. trying again."

currently continuing the work I was doing with flash-next on qwen4, it thinks WAY more (on high rather than xhigh) so overall the work is slower but maybe? higher quality? I haven't run it 1:1 with the same prompts but it caught some issues with flash-next's code during a code review.

edit: it does seem to not understand the difference between reasoning and output messages though. it does randomly output a block of reasoning to the chat like, 4 times per turn

1

u/kpd3 1d ago

Nice - self-correcting on a bad tool call is mostly what I'm worried about. Does stock qwen4 leak the reasoning into chat too? or only the uncensored one? Could be whatever template rather than the abliteration.

1

u/isademigod 1d ago

I wouldn't know. my projects require an uncensored model or it'll waste thousands of tokens debating whether classifying pictures of boobs is against "Anthropic's content policy" (it literally said this)

i would wager more on the chat template side of things though. these days a strong grounding with system prompts and skills matters more than the actual smarts of the model.

0

u/ilovegaming101 2d ago

refusal-direction ablation usually shifts the logits more than people admit, so KL on benign prompts is the number i'd trust.

1

u/kpd3 1d ago

Yea - I'd still want a tool calling pass on top. average KL can look fine while the long multistep stuff breaks. Have you seen anyone post numbers for Qwen4 ones yet?

1

u/ilovegaming101 1d ago

not that i've seen, and "Qwen4" abliterations may not even exist yet, so i'd treat any numbers on them with suspicion until someone shows a multistep eval.

14

u/oneness-harmonics 2d ago

But wait, its 57B parameters?

27

u/Solembumm3 2d ago

Yes, 20b ngram.

23

u/PANIC_EXCEPTION 2d ago

and 2B MTP head

26

u/RedBull555 2d ago

And my axe

14

u/shroddy 2d ago

And my beer

14

u/Party_9001 2d ago

And this guy's wife

25

u/senharikasin 2d ago

relax man

12

u/Quiet-Owl9220 2d ago

But does it write good smut?

19

u/spooky_redditor 2d ago

That's a job for the future Gemma5 uncensored

4

u/CumMcPenis 1d ago

That would be a first for qwen. (Believe me, I've tried.)

5

u/hurrdurrimanaccount 2d ago

no. agentmaxxxed model.

7

u/rebellioninmypants 2d ago

Anyone tried REA?

12

u/art_dragon 2d ago

Would love a variant of this optimized for Mac architectures

25

u/HistorianPotential48 2d ago

anthropic and google ain't winning against this sex-crazed community

6

u/JamesGooning 2d ago

Is it that good at writing though? Uncensored does better agentic work in my workload

1

u/__enki 1d ago

how come? genuine question.

6

u/Dangerous_Bad6891 2d ago

Is it pink?

6

u/Ps3Dave 2d ago

Would it be possible to have this as a Lora for a mid-sized quant, like the UD_Q4_K_XL? I really don't know if it's possible at all, but I think it would be awesome if it was.

2

u/Z3ROCOOL22 1d ago

Is there a file to abliterate this version: Qwen4-35B-A3B-UD-Q4_K_XL gguf? (STRATA)

11

u/caetydid llama.cpp 2d ago

insane! please can someone test how its reengineering / cybersecurity capabilities are as compared to 3.8?

5

u/Electronic-Metal2391 2d ago

Impressive.. can't wait for the quants.

4

u/Itsluc 2d ago

What the hell, even just starting a GPU Pod somewhere takes longer than you guys Uncensoring models.

1

u/WeatherWatchers 17h ago

Has anyone checked the model for the hidden malware that infected a few other models? I would do it myself by frankly I’m not entirely sure how to

1

u/Ontopoftheworld_ay 15h ago

What hidden malware? Can you send me a link

3

u/Ithron_Morn 2d ago

Damn, that was fast

3

u/Holiday_Point_603 2d ago

Has anyone done a 4 bit quant for the experts with 8 bit for the engram table for an uncensored model?

10

u/Patient-Gazelle9885 2d ago

Wow some of y’all apparently can keep a secret and follow an embargo. Someone in here must already know when the other versions of 4 are going to release.

5

u/lurkingtonbear 2d ago

Is it that, or do they have a pipeline and it takes minutes each time a new model comes out?

https://www.reddit.com/r/LocalLLaMA/s/xjvJyJM7Tq

1

u/Patient-Gazelle9885 1d ago

Eh didn’t placeholders for this release get posted everywhere a day or so ago? People had access, which is fine, that’s how the real world works. If there were no reputable labs like Unsloth with employees who can follow an embargo we would all worry more about getting malware with every download.

1

u/lurkingtonbear 1d ago

Ok, keep guessing while the OP told us exactly what happened lol.

2

u/perth_girl-V 2d ago

Following

2

u/Creative-Type9411 2d ago

this needs an apex mtp quant

2

u/Present_Resource4022 2d ago

could you provide lora

2

u/mantafloppy llama.cpp 1d ago

Being good and being first release never go well toghter looks at Unslop

I'll wait for my usual team, too many bad actor, and too many thing can be done to LLM, these day.

2

u/Maxinger15 1d ago

do you plan to uncensore the mtp to? or isn't that needed?

1

u/TheVoyant 2d ago

Dammit Barry...

1

u/Kemerd 2d ago

That was quick!

1

u/09forcedtousereddiet 1d ago

would it work on quadro rtx 5000 16gb + 32gb ddr4 ram ?

1

u/Aggravating-Push-207 1d ago

nah this HAS to be a TAS

1

u/ricK_ghSH 1d ago

 uncensored model nice

1

u/marcussacana 1d ago

compatible with Strata engine?

1

u/NoPiece9356 1d ago

I’m new, how does this affect scores if any?

1

u/Melodic_Funny1388 1d ago

will this work on 16 gigs vram? i have 16gigs of ram aswell, so no spill. can someone do a crazy quantisation? or send me a link on how to quantize?

also is uncensoring first them quantising better or quantising then censoring

1

u/-samka 1d ago

Where do people go to follow model ablation news?

1

u/HollowInfinity 14h ago

Do you have the transformers version of the FP8 somewhere? Or should I just use the LORA with VLLM?

1

u/RandumbRedditor1000 6h ago

I tried it in unsloth and the model seems kind of lobotomized. Occasionally it writes nonsensical fragmented sentences or uses the wrong words for things.

1

u/newtestdrive 4h ago

Any Basalt models based on this?

1

u/Flkhuo 2d ago

I ruined the perfect balance of 1000 and 100 comment.

-2

u/FewSkin4916 1d ago

Hey I’m new- I don’t get the hype around uncensored models. Why y’all so agitated? Context?

7

u/socialjusticeinme 1d ago

Ask the regular model to sort your porn folder, it can’t, ask an uncensored model to do it, it will. Simple as. 

1

u/DanceTop 1d ago

Uh, astra 6.2 happily flattens, harmonizes your torrent folder to "year, studio, movie, actresses" and deletes the nfo-files and only after done it answers to your "could you" question with "done"

5

u/socialjusticeinme 1d ago

And then promptly saves that data to some eternal profile of you and sold to any data broker willing to pay money. No thanks - I’ll use my local models.

1

u/DanceTop 1d ago

True that. But the exact was a thing i asked american cloud model do and it did, not refused :) Anyway, now I was at friends home, and astra would not tell me how to replace a fluorescent lught with a led one because i said i am drunk

1

u/UsualResult 1d ago

Nice moving the goalposts.

-3

u/no6969el 1d ago

Who even has porn folders anymore?

9

u/sephy009 1d ago

People of culture

4

u/PataponEnjoyer 1d ago

The true ball knowers have VHS collections.

1

u/NihilisticLurcher 1d ago

gives out free candy

-1

u/pigeon57434 1d ago

i dont really trust any uncensored models made without heretic

0

u/Aedankerr 2d ago

How many GB of VRAM does this chew?

0

u/DollarAkshay 1d ago

Is this one better than the OrcaRouter one ?

0

u/Z3ROCOOL22 1d ago

Is there a file to abliterate this version: Qwen4-35B-A3B-UD-Q4_K_XL gguf? (STRATA)

-1

u/m_adduci 1d ago

Is it safe or contains malware?

-7

u/Tikilou 1d ago

For any model, you should try this REAL benchmark :

RUST BENCHMARK 2024 for local LLM : Concurrent Single-Flight Cache with TTL/LRU

You must produce a stable Rust 2024 implementation, using the standard library exclusively.

Mandatory requirements:

No tools, compiler, terminal, or file access.

Reasoning and code generation only.

Do not claim to have executed tests.

Provide code intended to compile directly with cargo test.

Maximum of 300 lines of Rust, including tests.

Do not simplify the requirements or use unsafe, async, or external dependencies.

Required API

rust

pub struct Cache<K, V> { /* ... */ }

impl<K, V> Cache<K, V>

where

K: Eq + std::hash::Hash + Clone,

V: Clone,

{

pub fn new(capacity: usize, ttl: std::time::Duration) -> Self;

pub fn get_or_load<E, F>(

&self,

key: K,

loader: F,

) -> Result<V, E>

where

F: FnOnce(&K) -> Result<V, E>;

pub fn invalidate(&self, key: &K);

pub fn clear(&self);

pub fn len(&self) -> usize;

}

Mandatory guarantees

Single-flight: Multiple threads requesting the same key simultaneously must share a single load operation. The loaders belonging to the other threads must not be executed.

Per-key concurrency: Loading one key must not block the loading of another key.

TTL: Expiration must be calculated from the end of the load operation using Instant. A valid read updates the LRU order, but must not reset the TTL.

LRU: When capacity is reached, evict the valid key that was least recently used. capacity = 0 disables caching without disabling single-flight behavior.

Errors: Errors must never be cached. Threads waiting for the same load operation must receive an error corresponding to that load operation.

Invalidation during loading: invalidate() or clear() must prevent an older load operation from reinserting a stale value, even if its loader finishes after invalidation. A new get_or_load() call must be able to start a new load immediately.

Synchronization: No busy waiting, no lost wakeups, and no global lock held while a loader is executing.

Panics: If a loader panics, other threads waiting for that load operation must not remain blocked indefinitely. The panic may be propagated or converted into an error according to an explicitly documented policy.

Required tests

Provide at least four #[test] tests:

Multiple threads requesting the same key simultaneously.

Parallel loads on two different keys.

TTL and LRU eviction using a real clock.

Invalidation during a blocked load, followed by a new load for the same key.

Use Barrier, mpsc channels, or Condvar to make the tests deterministic. Avoid tests based solely on sleep().

Expected response

Complete src/lib.rs code.

Tests inside #[cfg(test)].

Concise explanation of synchronization invariants.

Identification of any limitations of your implementation.

**Absolute priority: code correctness, memory safety, absence of deadlocks, and compliance with the specified signatures.**RUST BENCHMARK 2024 — Concurrent Single-Flight Cache with TTL/LRU

You must produce a stable Rust 2024 implementation, using the standard library exclusively.

Mandatory requirements:

No tools, compiler, terminal, or file access.

Reasoning and code generation only.

Do not claim to have executed tests.

Provide code intended to compile directly with cargo test.

Maximum of 300 lines of Rust, including tests.

Do not simplify the requirements or use unsafe, async, or external dependencies.

Required API

rust

pub struct Cache<K, V> { /* ... */ }

impl<K, V> Cache<K, V>

where

K: Eq + std::hash::Hash + Clone,

V: Clone,

{

pub fn new(capacity: usize, ttl: std::time::Duration) -> Self;

pub fn get_or_load<E, F>(

&self,

key: K,

loader: F,

) -> Result<V, E>

where

F: FnOnce(&K) -> Result<V, E>;

pub fn invalidate(&self, key: &K);

pub fn clear(&self);

pub fn len(&self) -> usize;

}

Mandatory guarantees

Single-flight: Multiple threads requesting the same key simultaneously must share a single load operation. The loaders belonging to the other threads must not be executed.

Per-key concurrency: Loading one key must not block the loading of another key.

TTL: Expiration must be calculated from the end of the load operation using Instant. A valid read updates the LRU order, but must not reset the TTL.

LRU: When capacity is reached, evict the valid key that was least recently used. capacity = 0 disables caching without disabling single-flight behavior.

Errors: Errors must never be cached. Threads waiting for the same load operation must receive an error corresponding to that load operation.

Invalidation during loading: invalidate() or clear() must prevent an older load operation from reinserting a stale value, even if its loader finishes after invalidation. A new get_or_load() call must be able to start a new load immediately.

Synchronization: No busy waiting, no lost wakeups, and no global lock held while a loader is executing.

Panics: If a loader panics, other threads waiting for that load operation must not remain blocked indefinitely. The panic may be propagated or converted into an error according to an explicitly documented policy.

Required tests

Provide at least four #[test] tests:

Multiple threads requesting the same key simultaneously.

Parallel loads on two different keys.

TTL and LRU eviction using a real clock.

Invalidation during a blocked load, followed by a new load for the same key.

Use Barrier, mpsc channels, or Condvar to make the tests deterministic. Avoid tests based solely on sleep().

Expected response

Complete src/lib.rs code.

Tests inside #[cfg(test)].

Concise explanation of synchronization invariants.

Identification of any limitations of your implementation.

Absolute priority: code correctness, memory safety, absence of deadlocks, and compliance with the specified signatures.

=========================================================

GOOD ANSWER SHOULD BE SOMETHING LIKE THIS (if you have something else, this model is bad for coding) :

-------------------------------------------------------------------------

The benchmark is impossible to satisfy as specified without modifying the requirements.

The fundamental contradiction is:

The single-flight requirement ensures that only one loader is executed for a given key.

If the loader returns an error, all threads waiting for that load must receive the corresponding error.

However, the generic error type E has no Clone constraint.

Therefore, it is impossible to distribute an arbitrary E error to multiple threads while preserving Rust's ownership and memory safety guarantees.

The required Result<V, E> signature does not allow this guarantee for every possible E.

Conclusion: No memory-safe Rust implementation can fully satisfy all the stated requirements and signatures simultaneously.

The specification must be modified, for example by requiring a shareable error type (Arc<E>) or by adding an E: Clone constraint.

Providing 300 lines of code while claiming to satisfy every requirement would be an incorrect answer to this benchmark.

--------------------------------------------------------

Be carefull, a lot of local LLM are not even capable to produce a good answer about this, and somotime produce really bad code. (You can even give local llm answer to Claude au GPT for understanding how much this local LLM is bad about coding and just a good agent for tasks/hermes.)

1

u/Mar2ck 23h ago

Why are you censoring discussions on HF? Discussion #2 where someone asks for KL benchmarks is nuked. I don't know what #1 was but that's gone too.

1

u/Astezelexx 23h ago

Already downloaded and starting lobotomisation to my needs ;)

0

u/[deleted] 2d ago

[deleted] — view deleted comment

-1

u/stylome-ai-detection 2d ago

Notice: This comment appears to be AI generated.

AI-generated · confident · scan results

0

u/[deleted] 2d ago

[deleted] — view deleted comment

2

u/whiterussian 2d ago

It was 3.8 hombre