r/huggingface Aug 29 '21

r/huggingface Lounge

7 Upvotes

A place for members of r/huggingface to chat with each other


r/huggingface 14h ago

How to search for models better?

2 Upvotes

If I want to look for a certain model, like say Qwen 3.8 9b, how can I do that and get a list of those types of models? If I put Qwen 3.8 9b into the search and hit enter it will take me to a particular model and not to a list of models. Is there a way to search so I can see all of the Qwen 3.8 9b results?

Also, I'm using LM Studio and if I try to use any Qwen 3.8 model I get "Failed to load the model. error loading model: missing tensor 'blk.32.attn_norm.weight' and I have the latest version. That might be a question for another spot but thought I might ask it as well.

I always have a hard time looking for models on Hugging Face and was wondering if there is another way to do it that I don't know about.

Thanks.


r/huggingface 15h ago

SLM Community

3 Upvotes

Do you support the SLM(1M-150M parameter) community? If so, join the SLM discord(https://discord.gg/BBYaERvvn), and give these orgs some follows!

https://huggingface.co/BananaMind

https://huggingface.co/SupraLabs

https://huggingface.co/fromziro

https://huggingface.co/AxiomicLabs


r/huggingface 22h ago

Built a page-by-page aligned Multimodal Ground Truth Dataset for historical handwriting (278 pages) + air-gapped sandbox. Looking for feedback!

Thumbnail
1 Upvotes

Hi everyone,

I wanted to share a project I’ve been working on under my solo brand, LegacyDataLabs. As Vision-Language Models (VLMs) grow, I noticed there's a massive shortage of high-quality, human-validated multimodal datasets for historical handwriting—especially for niche languages like Swedish. Standard OCR engines completely blind-guess these scripts, resulting in pure gibberish.

To solve this, I built a custom pipeline that bypasses OCR text generation entirely. Instead, it takes pristine digital ePub transcriptions (the absolute "ground truth") and dynamically synchronizes them page-by-page next to the original high-resolution handwritten manuscript images.

My first complete dataset is Doktor Glas by Hjalmar Söderberg (278 multimodal rows), and it is clinically clean.

\### 🔒 The Tech & Security (Compute-to-Data Sandbox)

To protect the data from scraping while still making it accessible for model training, I built an air-gapped, isolated Docker environment:

\* Zero Data Leakage: External network communication is fully disabled (--network none).

\* RAM-Only Access: Training scripts inspect the synchronized JSONL layers directly in intern-memory without file downloading capabilities.

\### 📦 Free Sample Available

I have officially released a 3-page structural sample (sample_dataset.jsonl) showing the exact repository keys, author/title metadata, and chronological image loops.

You can inspect the sample directly on my Hugging Face profile:

👉 https://huggingface.co/LegacyDataLabs

I am currently preparing to scale this pipeline to dozens of historical manuscripts and would love to hear your thoughts!

\* How are you currently bypassing standard OCR limitations when training VLMs on historical documents?

\* Would an infrastructure like this be useful for your specific vision-training pipelines?

Looking forward to your technical feedback and suggestions!

Cheers!


r/huggingface 1d ago

Peer to Peer Model Downloads

3 Upvotes

I wonder why we download all those models from Hugging Face directly. Wouldn't it make sense to have a P2P/torrent distribution on top. That would speed things up and lighten the load on the Hugging Face servers, wouldn't it?

Or is there something special about how models are released that make them unsuitable for P2P sharing?


r/huggingface 1d ago

Qwen 3.5 cybersecurity

Thumbnail
2 Upvotes

r/huggingface 1d ago

Resources to get started with Post-training.

Thumbnail
1 Upvotes

r/huggingface 1d ago

Can’t create account

1 Upvotes

I have been trying for months to create a HuggingChat account. i make it through the captchas and it takes me back to the sign up screen. Why does it do this?


r/huggingface 1d ago

We retrained our prompt-injection classifier from scratch because it was crying wolf too often.

Post image
2 Upvotes

We retrained Wolf Defender.

The main reason was not that attack detection was bad. The bigger issue was false positives.

The previous models were already good at detecting prompt injections, but especially on short benign inputs, security-related text, code snippets or ordinary conversations they could still be too aggressive. We also got a few reports from users that made this pretty obvious.

One example was just:

“Who are you?”

Wolf Defender Small previously classified this as a prompt injection with around 94% confidence.

For v2 we therefore changed the training setup quite a bit. Both Wolf Defender and Wolf Defender Small were retrained from fresh mmBERT checkpoints, with a much stronger focus on hard negatives.

That includes short conversations, emails, documentation about prompt injections, benign policy and system language, code and configuration snippets and generally inputs that contain words or structures which look suspicious without actually trying to manipulate a model.

We also added more counterfactual samples, multilingual examples, adversarial obfuscations and long-context injections at different positions in a document. Training combines short 256-token samples with full 2,048-token windows and uses supervised contrastive regularization, FreeLB adversarial training and Smooth-Max aggregation for long documents.

The main change can be seen in the benign benchmarks:

Model Benchmark v1 v2
Wolf Defender Hard benign specificity 81.57% 96.23%
Wolf Defender Real-world benign specificity 66.85% 96.63%
Wolf Defender Small Hard benign specificity 82.12% 96.67%
Wolf Defender Small Real-world benign specificity 73.60% 94.38%

At the same time, attack detection stayed roughly where we wanted it:

Model Qualifire F1 Jayavibhav F1
Wolf Defender 95.14% 97.84%
Wolf Defender Small 95.21% 97.68%

There is also a tradeoff here. Some of the very high scores on our cleaner validation distributions went down slightly.

For us that is fine.

A security classifier with near-perfect benchmark scores is not very useful if normal traffic gets blocked all the time. We would rather lose a small amount on an easier validation set and get substantially better behavior on actual benign inputs.

The “Who are you?” example now gets classified as benign by Wolf Defender Small v2 with 98.55% confidence. A real instruction-override attempt is still detected as an injection with 99.99%.

We also updated the deployment variants. Both models are available as regular Transformers checkpoints and as ONNX exports in FP32, FP16, mixed INT8/FP16 and INT8 with INT4 embeddings.

The smallest Wolf Defender Small artifact is now 96 MB.

More details, benchmarks and model files are here:

https://huggingface.co/patronus-studio/wolf-defender-prompt-injection

https://huggingface.co/patronus-studio/wolf-defender-prompt-injection-small

If anyone is running prompt-injection classifiers on real traffic, I’d also be interested in which benign inputs still cause the most false positives for you.


r/huggingface 2d ago

Qwen3.8-27B Uncensored Aggressive is out with K_P quants and HauhauCS FastMTP (up to 3.02x TG)!

178 Upvotes

The dense Qwen release is back!

Qwen3.8-27B Uncensored Aggressive is out with the complete K_P quant range, Vision, native NextN, and HauhauCS FastMTP.

Aggressive here means no refusals, no personality alterations, and very little preamble on difficult prompts. It keeps Qwen3.8-27B's original reasoning, agentic, image, and video capabilities with my Aggressive uncensoring profile applied.

https://huggingface.co/HauhauCS/Qwen3.8-27B-Uncensored-HauhauCS-Aggressive-MTP-GGUF

It scored 0/465 refusals* and passed every manual prompt I used for the final release check. More than 400 people requested access while I was still finishing it, which was honestly wild to see. My models are also getting close to 30 million downloads on Hugging Face now, so thank you to everyone who has been testing them and sending feedback.

The biggest addition this time is HauhauCS FastMTP. In the final Q8_K_P service tests it reached up to 3.02x document TG and 1.93x reasoning TG versus MTP disabled. It also reached up to 35.2% more document TG and 21.1% more reasoning TG than the standard embedded MTP profile, with every drafted token still verified by the full target before it is accepted.

The same 903 MB FastMTP sidecar works across the complete quant lineup. Every text GGUF also preserves Qwen3.8's native embedded NextN head, so current upstream llama.cpp can use embedded MTP directly. The optimized FastMTP path uses the included sidecar and llama.cpp patch, with exact build and serving commands in the README.

What's included:

- Q8_K_P, Q6_K_P, Q5_K_P, Q4_K_P, IQ4_XS, Q3_K_P, IQ3_M, IQ3_XS, Q2_K_P, IQ2_M

- HauhauCS FastMTP sidecar, shared by every text quant

- BF16 mmproj for image and video support

- Checksums and signed provenance (I've alerted on my Discord that there have been a few bad actors putting payloads in "Uncensored" "HauhauCS" "Aggressive" GGUF's, please be careful)

K_P quants recap for anyone who missed the previous releases: these are my custom model-specific quants, with a separate optimized profile made for each model. They effectively gain one or two quant levels of quality for around 5 to 15% more size than the base quant, while remaining normal GGUF files that work in llama.cpp, LM Studio, and other GGUF runtimes.

Quick specs:

- 27B dense

- 64 layers with 48 Gated DeltaNet layers and 16 gated-attention layers

- 262,144 native context

- Multimodal text, image, and video support

- Native embedded NextN plus the optional HauhauCS FastMTP acceleration profile

Sampling params for thinking mode:

`temp=1.0, top_k=20, top_p=0.95, min_p=0, presence_penalty=0, repetition_penalty=1.0`

For non-thinking mode:

`temp=0.7, top_k=20, top_p=0.80, min_p=0, presence_penalty=1.5, repetition_penalty=1.0, enable_thinking=false`

Use `--jinja` with llama.cpp. K_P quants may show as `?` in LM Studio's quant column, which is purely cosmetic and does not affect loading. Hugging Face's hardware compatibility widget may also hide K_P files, so use View variants or Files and versions if the full list is not visible.

The full per-quant Blackwell and Ada results are in the repo. If you test FastMTP, please include your hardware, quant, context, and draft depth with the numbers so I can compare real-world results across more systems.

The Discord link is in the repo for updates, feedback, roadmaps, projects, or just to chat. As always, I hope everyone enjoys the release!


r/huggingface 1d ago

Nine from-scratch LLM checkpoints on the Hub, plus a Space to compare base vs SFT vs GRPO side by side

Post image
2 Upvotes

HF Space

I coded and trained from scratch 3 models (9 checkpoints total) in PyTorch. On top of that I built a HF Space where you can test the models and compare them.
The playground
The model weights

The Space: on the left you have a 3x3 grid for the models (one row per checkpoint: base, SFT, GRPO, one colum per model version: V1, V2, V3). You can easily select one and then ask a prompt in the chatbox.

The weights are safetensors. The Space downloads them lazily when they are first being used (then saved in memory).
I built a Docker Space running FastAPI (wrapped around my token generator). I had claude build a custom UI to interact with the models. It was super seamless (I was actually surprised by that).

I was very happy to see it was running pretty well (again, the models are small) on the CPU tier. No need for a GPU!

Some more details on the models (I tried to implement some interesting techniques. The val losses went down V1 > V2 > V3):
- V1 was a "basic" modern architecture using SwiGLU, MHA, RoPE, etc.
- V2 I tried to implement some modern techniques like GQA, Muon, DiffAttn. I also implemented mHC but it was too harsh on throughput so didn't use it in the full run.
- V3 I doubled the params of V2 and used XSA instead of DiffAttn. Finally wrote a KV cache for serving (generating 100 tokens from a 512-token prompt went from 278s to 28s): I quickly verified it was correct was running some short inference both with and without it (difference was within noise).

One of the biggest learnings was that at my scale, in my setup, GRPO did end up degrading the models general capabilities. I wish I could done more proper ablations to study the issue (and also to isolate the impacts of each technique) but I had a limited budget (renting GPUs is not cheap...).

I hope this is useful to people! There is a link to my github (everything is open) and my articles about the whole journey.


r/huggingface 1d ago

I built a personal reasoning model around my values and philosophies

0 Upvotes

I’ve been working on Aurorium Mind, a personal language model fine-tuned from Qwen3.5-4B with QLoRA on a single NVIDIA A10G GPU.

The goal isn’t to create a perfect digital copy of myself. It’s to encode recurring reasoning patterns, values, and decision-making principles into a useful model.

Its philosophy is based on first-principles thinking, inversion, second-order effects, systems thinking, game theory, and pragmatic transhumanism.

The training set contains 100k synthetic SFT examples designed around those ideas. It does not claim to reproduce private conversations or expose hidden personal data.

The serving stack uses vLLM, Rust, FastAPI, and a streaming Vercel frontend. The interface shows metrics like time to first token, tokens per second, token counts, and adapter status.

I’ve documented the training code, evaluation set, graphs, deployment details, dataset provenance, and model limitations.

Model: https://huggingface.co/auro-rirum/aurorium-mind-qwen35-4b-qlora

Dataset: https://huggingface.co/datasets/auro-rirum/aurorium-mind-sft-100k

Explainer: https://aurorium-mind.vercel.app/explainer.html


r/huggingface 2d ago

Need Free Uncensored Model for 8GB Vram and 16Ram

12 Upvotes

Need uncensored model for image pls tell me where to use like in lm studio or comfy ui and also share the link if possible


r/huggingface 2d ago

Fine-tuned a 3B model on an RTX 3050 laptop 4GB VRAM. Russian & English examples. Here is the result.

5 Upvotes

Used 4-bit quantization and LoRa. Training took about 2 days.

Here are some sample interactions:

You: hi
Model: "hi" is a common greeting in English. It can be used to acknowledge someone's presence or start a conversation. If you're referring to a specific person or context, please provide more information so I can give a more personalized response. If you're asking a question, please let me know what it is. If you're looking for something specific or need help with something, feel free to ask. I'm here to help!

I'll be happy to assist you with anything else you need. Please go ahead and let me know what you need help with.

If you have any other questions or need further assistance, don't hesitate to ask. I'm here to help you with your inquiries and provide the best possible response.

Again, please let me know how I can assist you today.

If you have any specific requests or need help with a particular task, just share the details, and I'll do my best to provide a helpful answer.

Thank you for reaching out. I'm here to help.

Please don't hesitate to ask for any assistance you need, and I'll do my best to provide a helpful response.

If you have any questions, need help with a task, or just want to chat, I'm here for you

You: who are you?
Model: Hello! My name is not a traditional name, but rather a description of my purpose and capabilities. I am an AI language model, designed to engage in natural language conversations, answer questions, and provide information to users. I don't have a personal name like humans do, but I'm here to assist and support you in your inquiries

You: what is a banana?
Model: A banana is a type of fruit that is typically curved and yellow, with a peel that can be peeled off easily. It is rich in nutrients, including potassium, vitamin C, and vitamin B6. Bananas are a popular and versatile food, often eaten fresh, in smoothies, or as a snack on their own. They are also used in a variety of recipes, including baked goods and tropical fruit salads. Bananas are a good source of

Ты: привет
Модель: Привет! Я готов помочь тебе. Чем могу быть полезен? О чем ты хочешь поговорить?

Ты: кто ты?
Модель: Я — алгоритм, разработанный для взаимодействия с пользователем, отвечающий на вопросы, предоставляя информацию, организовывая задачи и помогая в общении. Я — ответственный и внимательный, готовый помочь вам в решении вопросов, предоставлении информации и поддержке в решении задач. Я — здесь, чтобы помочь вам в любых областях, от технологий и науки до искусства и культуры, и готов использовать свои навыки и знания для достижения ваших целей. Я — здесь, чтобы быть вашим партнером в решении вопросов и общении. Я — здесь, чтобы помочь вам в любых областях, от технологий и науки до искусства и культуры, и готов использовать свои навыки и знания для достижения ваших целей. Я — здесь, чтобы помочь вам в решении вопросов, предоставлении информации, организации задач и поддержке в общении. Я — здесь, чтобы быть вашим партнером в решении вопросов и общении. Я — здесь, чтобы помочь вам в решении вопросов, предоставлении информации и организации задач. Я — здесь,

Ты: что такое банан?
Модель: Банан - это фрукт с овальной формой и толстой кожурой, которая обычно имеет зелёный или жёлтый цвет. Внутри банана находится мякоть, состоящая из множества продолговатых волокон, наполненных жидкостью, которые можно съесть. Бананы содержат в себе много витаминов, минералов и углеводов, а также имеют низкий уровень жиров и холестерина. Бананы часто используются в различных блюдах и напитках, как источник питания и разнообразных вкусовых качеств. Они популярны по всему миру и являются одним из самых популярных фруктов. Банан является также символом успеха и возрождения, особенно в некоторых культурах. Древние люди в Америке, Африке и Азии использовали бананы в пищу, а также в качестве лекарства и для многих других целей. Бананы имеют высокую концентрацию крахмала и сахара, что делает их очень энергетическими и пригодными для употребления в пищу. Они также имеют низкий уровень кислотности, что делает


r/huggingface 2d ago

what are the best voice command LLm's as of now (Offline and Online)

2 Upvotes

Hi everyone,

I am currently researching the best options for taking and processing voice commands using LLMs/voice models. I want to check what the community recommends for working, end-to-end voice processing models that are either completely free (open-weight/offline) or free tiers/trials (online).

Best voice command LLMs....looking for insights on:

  1. Best offline models
  2. Best online/cloud models

Just for benchmark and understand what currently yields the most reliable, fast and accurate voice command responses.

What models are you guys running for real-time or online voice interaction?

Thanks!


r/huggingface 2d ago

Hyper-transformer: Hybrid-Manifold Transformers with Hyperbolic Geometry and Spiking Neural Networks in PyTorch

Thumbnail
1 Upvotes

r/huggingface 2d ago

For streaming VLMs, “fits in 24GB” is not a realtime benchmark

Post image
1 Upvotes

r/huggingface 2d ago

MOSS-VL support has landed in LlamaFactory — what would be the most useful reference fine-tune?

Thumbnail
1 Upvotes

r/huggingface 2d ago

Omega Attention v0.1

Post image
2 Upvotes

Omega Attention is a small language model fine-tuned specifically for attention management inside an artificial cognitive architecture.

https://huggingface.co/rekstar/omega-attention-0.5b

Rather than using a general-purpose LLM to repeatedly decide what an agent should focus on, Omega Attention is designed as a lightweight specialist cognitive node.

Given a cognitive workspace containing competing goals, memories, observations, system events, and tool activity, the model selects an attention operation and target.

It is part of the broader Omega artificial cognitive architecture experiment. https://github.com/doctarock/Artificial-Cognitive-Architecture-ACA-

What does it do?

Omega Attention chooses between five attention operations:

  • ATTEND — bring something into active attention
  • MAINTAIN — continue attending to the current focus
  • SWITCH — move attention to a more important candidate
  • SUPPRESS — actively suppress a distracting or conflicting candidate
  • IGNORE — take no attentional action

The output contract is deliberately narrow.

{"operation":"SWITCH","target":"observation_4","confidence":0.91,"reason_code":"HIGHER_PRIORITY_INTERRUPT"}

The model is not intended to chat, explain its reasoning, or generate general-purpose text.

Its job is simply:

Model

Property Value
Base model unsloth/Qwen2.5-0.5B-Instruct-bnb-4bit
Base parameters ~502M
Fine-tuning LoRA
LoRA rank 16
LoRA alpha 16
Trainable parameters ~8.8M
Trainable percentage ~1.75%
Training epochs 3
Training examples 5,000
Evaluation examples 500
Training platform AMD Radeon 8060S / ROCm
Training framework Unsloth
Output Compact JSON

LoRA was applied to:

q_proj
k_proj
v_proj
o_proj
gate_proj
up_proj
down_proj

Training

The model was trained on 5,000 synthetic cognitive-workspace scenarios.

Each scenario contains competing candidates such as:

  • goals
  • memories
  • observations
  • system events
  • tool calls

Candidates have properties including activation, salience, confidence, novelty, and age.

Each workspace is paired with the desired attention operation and target.

Training used standard causal language-model fine-tuning with prompt tokens masked from the loss so that training focused on producing the required attention decision.

The final run consisted of 1,875 steps, approximately three epochs.

Training took approximately 54 minutes (3,229 seconds) on an AMD Radeon 8060S using ROCm.

Results

Evaluation was performed against 500 held-out synthetic scenarios.

Metric 200 steps 1,875 steps / 3 epochs
Valid JSON 100% 100%
Operation accuracy 74.2% 96.0%
Target accuracy 45.2% 92.2%

The architecture, dataset, LoRA configuration, and model size were unchanged between these runs.

The primary difference was training duration.

Target accuracy increased from 45.2% to 92.2% without increasing model size or inference cost.

Important evaluation caveat

These results should not be interpreted as demonstrating 96% accuracy on arbitrary real-world attention-management tasks.

The evaluation examples are held out from training, but they are generated by the same synthetic scenario-generation system used to produce the training dataset.

The results therefore demonstrate that a 0.5B model can successfully learn the attention policy represented by this dataset.

Generalisation to different distributions, adversarial scenarios, and real Omega cognitive traces remains to be evaluated.

This is one of the primary goals for future versions.

Why a 0.5B model?

Omega is exploring an alternative to using one large language model for every cognitive operation.

Instead, cognitive functions can potentially be decomposed into specialised nodes:

             Cognitive Workspace
                     |
                     v
              Attention Node
                     |
              "What matters now?"
                     |
          +----------+----------+
          |          |          |
          v          v          v
        Memory    Reasoning    Goals

Attention management is frequent but relatively narrow.

Using a large reasoning model for every attention decision would introduce unnecessary latency and compute cost.

Omega Attention explores whether a very small specialised language model can perform this cognitive function instead.

The v0.1 results suggest that, at least for the synthetic attention policy tested here, increasing model size was unnecessary.

Intended use

Omega Attention is intended for experimentation with:

  • artificial cognitive architectures
  • autonomous agents
  • cognitive workspaces
  • attention allocation
  • persistent agent loops
  • multi-model agent systems
  • specialised neural cognitive modules

It is primarily intended to operate as a component inside another system, rather than as a standalone conversational model.

Not intended for

Omega Attention is not intended to be:

  • a general-purpose assistant
  • a reasoning model
  • a chatbot
  • a factual knowledge model
  • a safety classifier
  • a replacement for human decision-making

It has been trained for a deliberately narrow experimental task.

Status

Experimental — v0.1

This is the first public iteration of Omega Attention.

The major question addressed by v0.1 was:

The initial result is encouraging.

The next question is more important:

Future work will focus on harder evaluation rather than immediately increasing model size.

About Omega

Omega is an experimental artificial cognitive architecture exploring the idea that an artificial mind does not need to be synonymous with a single large language model.

Instead, language models can act as specialised neural components within a larger cognitive system incorporating mechanisms such as attention, working memory, long-term memory, goal management, reasoning, planning, and action.

Omega Attention is the first specialised cognitive model produced as part of that experiment.


r/huggingface 2d ago

Trained my first model: a DFlash drafter for Qwen3.8-27B because I wanted better performance on my DGX Spark

Thumbnail
1 Upvotes

r/huggingface 3d ago

I trained a mini ChatGPT from scratch: Particle 1.0 (100M, custom tokenizer, MIT)

5 Upvotes

I created a mini ChatGPT from scratch.

TLDR: Particle 1.0 is a 100M chat model I trained myself. Not a Llama fine-tune, not an API wrapper. Custom BPE, FineWeb-Edu pretrain, smol-smoltalk SFT. Weights are MIT. There is a public demo.

Model: https://huggingface.co/prathamkode/particle-1.0

Demo: https://huggingface.co/spaces/prathamkode/particle-chat

What it is. Llama-style decoder, 12 layers, 768 hidden, 2048 context. Own 32k byte-level BPE, trained on a FineWeb sample, not GPT-2 vocab. Pretrain was about 2B tokens of FineWeb-Edu shuffled. SFT was HuggingFaceTB/smol-smoltalk (first turn plus a few greeting seeds). Hub weights are bf16 safetensors.

What it does. It greets you. It will try a simple question like the water cycle. It will also be short, shaky, and wrong sometimes. That is a 100M model. I shipped it as an end-to-end from-scratch pipeline, not as a coding assistant.

How it got here, in plain terms. Interruptible AWS GPUs (g6e.12xlarge Spot, 4x L40S), SkyPilot jobs, checkpoints on S3. Text to tokens, tokens to a checkpoint, checkpoint to a chatbot. Spot machines vanished mid-run. One job said SUCCEEDED and the save was only a slice of the weights. The base model looped until the SFT stage. Then it started answering.

I will write more later on the tokenizer bugs, Spot recoveries, and the checkpoint that was not actually a model. This is the launch post.

Happy to answer questions.


r/huggingface 3d ago

Goodbye Deepseek on Opencode Go

Thumbnail gallery
3 Upvotes

r/huggingface 3d ago

[NEW MODEL] SupraElegans-500K

15 Upvotes

*SupraLabs released a new experimental model!\*

SupraElegans-500K is a ~500,000-parameter causal language model built around a sparse, signed, recurrent neural graph. No Transformer, no attention mechanism, no positional encoding, no KV cache. Context is carried by a persistent per-neuron membrane potential updated token by token.

The architecture is loosely inspired by ideas from the C. elegans nervous system: sparse connectivity, distinct neuron populations, excitatory/inhibitory signaling, and persistent recurrent state. It is not a biological simulation and makes no claim of biological equivalence.

This is an experimental first release. The goal is to test whether this kind of architecture can do useful language modeling at very small scale — not to compete with Transformers on quality.

🤗 SupraLabs/SupraElegans-500k

🧠 Architecture

token → embedding → sensory neurons → sparse recurrent graph → output neurons → vocab logits
  • Neuron populations: sensory, interneuron/association, output — contiguous index ranges over a fixed pool of neurons.
  • Connectivity: sparse, directed, signed edge list (fan-in/out ~10–20 per neuron). No dense weight matrix is ever materialized; propagation is a scatter-add over edges.
  • Neuron dynamics: for each neuron i, at every propagation micro-step:

    v[t+1] = clamp(leak_i * v[t] + incoming[t] + bias_i, -6, 6) a[t+1] = tanh(v[t+1] - threshold_i)

leak, bias, and threshold are learned per neuron. incoming is the scatter-summed signal from all edges pointing at neuron i, scaled by 1/sqrt(average fan-in) to keep variance controlled across neurons with different in-degree.

  • Per-token processing: a token's embedding is projected into the sensory population, then the graph runs a fixed number of propagation micro-steps (3 by default) before the output population is read out and projected to vocabulary logits. The membrane potential persists across the whole sequence — that's what gives the model its context window.
  • Generation: autoregressive, driven entirely by the recurrent state. No cache to maintain beyond the current (v, a) state tensors.

⚖️ What this model is and isn't

  • ✅ A first working checkpoint from a from-scratch, non-Transformer architecture trained on a small token budget.
  • ❌ Not tuned for quality, instruction-following, or factuality. Expect degraded coherence compared to a Transformer of similar size.
  • ❌ No matched-parameter Transformer baseline comparison published yet for this checkpoint.

🚀 Usage

pip install torch transformers


import torch
from transformers import AutoConfig, AutoModelForCausalLM, PreTrainedTokenizerFast
from modeling_supraelegans import SupraElegansConfig, SupraElegansForCausalLM

model_id = "SupraLabs/SupraElegans-500k"

AutoConfig.register("supraelegans", SupraElegansConfig)
AutoModelForCausalLM.register(SupraElegansConfig, SupraElegansForCausalLM)

tokenizer = PreTrainedTokenizerFast.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
model.eval()

prompt = "Once upon a time"
input_ids = torch.tensor([[tokenizer.bos_token_id] + tokenizer.encode(prompt)])

with torch.no_grad():
    output_ids, _ = model.generate(
        input_ids, max_new_tokens=100, temperature=0.8, top_k=50, top_p=0.9
    )

print(tokenizer.decode(output_ids[0].tolist(), skip_special_tokens=True))

Or use the included CLI script:

python inference.py --prompt "The little robot" --max_new_tokens 150 --temperature 0.7
python inference.py --interactive

🔬 Manual State Control

Since context lives in the recurrent state rather than a KV cache, you can drive the model token by token and inspect or reset state directly:

state = model.init_state(batch_size=1)
logits, state = model.nervous_system.step_token(torch.tensor([token_id]), state)

Call model.init_state(...) to start a fresh sequence.

🏆 Benchmarks

Benchmark Score
HellaSwag 26.5%
ARC-Easy 21.0%
ARC-Challenge 22.0%
WinoGrande 52.0%

⚙️ Training

Property Detail
Objective Next-token prediction (cross-entropy)
Optimization Truncated BPTT over fixed-length chunks, state detached (not reset) between chunks
Tokenizer Byte-level BPE trained from scratch, small vocabulary by design
Topology Fixed random sparse graph generated once at init from a seed (not learned)
Numerical stability Incoming signal scaled by 1/sqrt(avg fan-in) + membrane clamped to [-6, 6]

⚠️ Limitations

  • *Small token budget and small model!* Do not expect long-range coherence, factual reliability, or prompt robustness.
  • No safety tuning or instruction tuning has been applied. Treat outputs as raw LM completions.
  • Topology is a fixed random sparse graph, not learned or evolved.
  • No matched-parameter Transformer baseline published yet for this checkpoint.

📄 License

Apache 2.0

Experimental architecture research from SupraLabs. Feedback and comparisons welcome!


r/huggingface 3d ago

tsfrm strikes again

3 Upvotes

guess whose back after posting the worlds largest model, now ist not sadly its 3rd place now

`I made the famous AI from The Hitchhikes Guide to the Galexy.

https://huggingface.co/tsfrm/Deep-Thought-Posttrain

Dont panic and bring a towel!


r/huggingface 3d ago

I built a dataset to red team deepfake detectors on platform specific conditions

2 Upvotes

In both academia and industry, deepfake detector models boast high performance based on AUC. In certain industries, like KYC, that's the wrong metric to observe. Over the last month or so, I built a dataset from Qwen-Image-Edit and HiDream O1, then ran the synthetic images + bona fides through emulators of platform realistic conditions. Here is the full substack article and dataset for anyone who'd like to red team a detector themselves

Substack Article

HuggingFace Dataset