# timm

timm is a PyTorch image-model library providing image encoders, backbones, model definitions, pretrained weights, and training, evaluation, inference, and export scripts.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## torchtest2: One-Call Sanity Checks for PyTorch Models,Evaluated on Real and Unseen Architectures

DevFeed: [torchtest2: One-Call Sanity Checks for PyTorch Models,Evaluated on Real and Unseen Architectures](<https://devfeed.tech/articles/torchtest2-one-call-sanity-checks-for-pytorch-models-evaluated-on-real-and-unseen-architectures-142145.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.23273>)

Author: Grzegorz Gwardys

Published: 2026-11-19T05:00:00Z

Content type: news

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [PyTorch](<https://devfeed.tech/topics/pytorch.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Transformers](<https://devfeed.tech/topics/transformers.md>), [timm](<https://devfeed.tech/topics/timm.md>)

Tags: [17](<https://devfeed.tech/tags/17.md>), [3](<https://devfeed.tech/tags/3.md>), [78](<https://devfeed.tech/tags/78.md>), [abstract](<https://devfeed.tech/tags/abstract.md>), [after](<https://devfeed.tech/tags/after.md>), [all](<https://devfeed.tech/tags/all.md>), [also](<https://devfeed.tech/tags/also.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [approach](<https://devfeed.tech/tags/approach.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [architectures](<https://devfeed.tech/tags/architectures.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [attention](<https://devfeed.tech/tags/attention.md>), [batch](<https://devfeed.tech/tags/batch.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [bootstrap](<https://devfeed.tech/tags/bootstrap.md>), [call](<https://devfeed.tech/tags/call.md>), [cs-cv](<https://devfeed.tech/tags/cs-cv.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [models](<https://devfeed.tech/tags/models.md>), [one](<https://devfeed.tech/tags/one.md>), [pytorch](<https://devfeed.tech/tags/pytorch.md>)

### AI overview

torchtest2 runs 18 PyTorch sanity checks on one batch with a single call, restores touched state, and uses plugins to adapt to model families. On 191 models from unseen architecture families, it detected 78% of injected bugs (95% CI 75-80%), compared with 40% for the original torchtest checks and 48% for a training monitor. It also found a batch-coupling bug in timm's GCViT, while real models revealed false alarms missed by the tool's tests and random architectures. Its reach is limited: only 3 of 28 reproduced Stack Overflow bugs and 3 of 18 TrainCheck silent errors were detectable by a pre-training tester. A median check took 1.0 second.

### Source excerpt

arXiv:2611.23273v1 Announce Type: new Abstract: Many bugs in deep learning code are silent: a layer that is never called, an optimizer created before the classification head was replaced, a recurrent layer that treats the batch as time, or an ignored attention mask. The code runs, the loss decreases somewhat, and the defect surfaces, if ever, after days of GPU time. We present torchtest2, an open-source library that runs 18 sanity checks on a single batch with one call, restores the PyTorch state it touches, and adapts to model families through plugins. We evaluate it by mutation analysis with 17 classes of silent bugs on 103 models from torchvision, timm and Hugging Face transformers, on 600 random architectures and on 20 hand-written realistic bugs, against the checks of the original torchtest, overfitting a single batch, a smoke test and a training monitor in the style of AUTOTRAINER and DeepDiagnosis. Every mutant is compared with its healthy counterpart, and intervals come from a bootstrap over models. After freezing the tool, we ran it on 191 models of architecture families it had never seen: counting, for every tool alike, a failing report where the healthy model's report does not fail, it detected 78% of the injected bugs (95% CI 75-80), against 40% for the original torchtest checks and 48% for the training monitor. On real models its batch-independence check found a bug in timm's GCViT that couples the images of a batch. Real models also exposed false alarms that neither the tool's own test suite nor random architectures had revealed. Two independent collections of real silent bugs mark the limits of the approach: only 3 of 28 reproduced PyTorch bugs from Stack Overflow and 3 of the 18 silent training errors released with TrainCheck are within reach of a pre-training model tester. A median check takes 1.0 s. We release the library, the benchmark and all raw results.

## Half-Truths Break Similarity-Based Retrieval

DevFeed: [Half-Truths Break Similarity-Based Retrieval](<https://devfeed.tech/articles/half-truths-break-similarity-based-retrieval-94109.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2602.23906>)

Author: Bora Kargi, Arnas Uselis, Seong Joon Oh

Published: 2026-10-21T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [timm](<https://devfeed.tech/topics/timm.md>), [Enhancing AI model performance](<https://devfeed.tech/topics/enhancing-ai-model-performance.md>), [Image](<https://devfeed.tech/topics/image.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [added](<https://devfeed.tech/tags/added.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [based](<https://devfeed.tech/tags/based.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [but](<https://devfeed.tech/tags/but.md>), [call](<https://devfeed.tech/tags/call.md>), [can](<https://devfeed.tech/tags/can.md>), [cases](<https://devfeed.tech/tags/cases.md>), [clip](<https://devfeed.tech/tags/clip.md>), [code](<https://devfeed.tech/tags/code.md>), [component](<https://devfeed.tech/tags/component.md>), [cs-cv](<https://devfeed.tech/tags/cs-cv.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [errors](<https://devfeed.tech/tags/errors.md>), [fine](<https://devfeed.tech/tags/fine.md>), [full](<https://devfeed.tech/tags/full.md>), [half](<https://devfeed.tech/tags/half.md>), [https](<https://devfeed.tech/tags/https.md>), [image](<https://devfeed.tech/tags/image.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [similarity](<https://devfeed.tech/tags/similarity.md>)

### AI overview

CLIP-style dual encoders can score a description with a plausible but incorrect added detail above the correct shorter description, a failure the paper calls a half-truth. On COCO, CLIP preferred the correct shorter description only 40.6% of the time, falling to 32.9% when the added detail was a relation. The authors attribute this to contrastive training on full sentences without explicit grounding of caption parts. Their CS-CLIP method splits captions into entity and relation units, creates minimally edited incorrect foils, and fine-tunes the model to rank each correct unit higher while retaining standard dual-encoder inference. It reached 69.3% half-truth accuracy and improved average performance on established compositional benchmarks by 5.7 points.

### Source excerpt

arXiv:2602.23906v1 Announce Type: cross Abstract: When a text description is extended with an additional detail, image-text similarity should drop if that detail is wrong. We show that CLIP-style dual encoders often violate this intuition: appending a plausible but incorrect object or relation to an otherwise correct description can increase the similarity score. We call such cases half-truths. On COCO, CLIP prefers the correct shorter description only 40.6% of the time, and performance drops to 32.9% when the added detail is a relation. We trace this vulnerability to weak supervision on caption parts: contrastive training aligns full sentences but does not explicitly enforce that individual entities and relations are grounded. We propose CS-CLIP (Component-Supervised CLIP), which decomposes captions into entity and relation units, constructs a minimally edited foil for each unit, and fine-tunes the model to score the correct unit above its foil while preserving standard dual-encoder inference. CS-CLIP raises half-truth accuracy to 69.3% and improves average performance on established compositional benchmarks by 5.7 points, suggesting that reducing half-truth errors aligns with broader gains in compositional understanding. Code is publicly available at: https://github.com/kargibora/CS-CLIP

## Gemma 3n fully available in the open-source ecosystem!

DevFeed: [Gemma 3n fully available in the open-source ecosystem!](<https://devfeed.tech/articles/gemma-3n-fully-available-in-the-open-source-ecosystem-7213.md>)

Original publisher: [Read original article](<https://huggingface.co/blog/gemma3n>)

Author: Aritra Roy Gosthipaty; Pedro Cuenca; Sergio Paniego; Vaibhav Srivastav; Christopher Fleetwood; Joshua; Steven Zheng; Kashif Rasul

Published: 2025-06-26T00:00:00Z

Content type: article

Language: en

Sources: [Hugging Face](<https://devfeed.tech/sources/hugging-face-blog.md>)

Topics: [gemma](<https://devfeed.tech/topics/gemma.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [AI Development](<https://devfeed.tech/topics/ai-development.md>), [llama.cpp](<https://devfeed.tech/topics/llama-cpp.md>), [MLX](<https://devfeed.tech/topics/mlx.md>), [Ollama](<https://devfeed.tech/topics/ollama.md>), [transformers.js](<https://devfeed.tech/topics/transformers-js.md>), [GPU](<https://devfeed.tech/topics/gpu.md>), [Hardware](<https://devfeed.tech/topics/hardware.md>), [timm](<https://devfeed.tech/topics/timm.md>), [asr](<https://devfeed.tech/topics/asr.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [audio](<https://devfeed.tech/tags/audio.md>), [community](<https://devfeed.tech/tags/community.md>), [embeddings](<https://devfeed.tech/tags/embeddings.md>), [gemma](<https://devfeed.tech/tags/gemma.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [llama-cpp](<https://devfeed.tech/tags/llama-cpp.md>), [llm](<https://devfeed.tech/tags/llm.md>), [mlx](<https://devfeed.tech/tags/mlx.md>), [multimodal](<https://devfeed.tech/tags/multimodal.md>), [ollama](<https://devfeed.tech/tags/ollama.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [release](<https://devfeed.tech/tags/release.md>), [research](<https://devfeed.tech/tags/research.md>), [speech](<https://devfeed.tech/tags/speech.md>), [timm](<https://devfeed.tech/tags/timm.md>), [transformers](<https://devfeed.tech/tags/transformers.md>), [transformers-js](<https://devfeed.tech/tags/transformers-js.md>), [translation](<https://devfeed.tech/tags/translation.md>), [vision](<https://devfeed.tech/tags/vision.md>), [vlm](<https://devfeed.tech/tags/vlm.md>)

### AI overview

This article announces the availability of Gemma 3n in major open-source libraries and presents practical usage and fine-tuning examples. It describes the model variants, memory-efficient hardware requirements, multimodal audio and vision encoders, speech-to-text and translation capabilities, and architectural features including MatFormer and Per-Layer Embeddings.

### Source excerpt

We're on a journey to advance and democratize artificial intelligence through open source and open science.