Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

vimod

Latest version: v0.1.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: luke-the-builder
2 Versions

Scan summary

vimod was last scanned on 29 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 29 Nov 2026.
  • Findings: No rules fired in version 0.1.1.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.1 LATEST 29 Nov 2026 No rules fired
0.1.0 29 Nov 2026 No rules fired

No rules fired in 0.1.1

Findings

Findings for v0.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

vimod

What is this?

vimod provides clean, modular building blocks for custom Vision Transformers in PyTorch. No model zoos, no pretrained weights, no heavy frameworks - just readable, production-grade components designed to be mixed, matched, and hacked on.

Quickstart

pip install vimod

Examples

See full example codes in examples.

Transformer Block with Pre-Norm and DropPath
class Block(nn.Module):
    def __init__(self, dim, heads, drop_path=0.0):
        super().__init__()
        self.attn = Attention(dim, heads, pre_norm_layer=nn.LayerNorm)
        self.mlp = MLP(dim, pre_norm_layer=nn.LayerNorm)
        self.drop_path = DropPath(drop_path)

    def forward(self, x):
        x = x + self.drop_path(self.attn(x))
        x = x + self.drop_path(self.mlp(x))
        return x
ViT Architecture with Patch Embedding, Positional Embedding, and Classification Head
class ViT(nn.Module):
    def __init__(self, image_size, patch_size, dim, depth, heads, num_classes):
        super().__init__()
        grid = image_size // patch_size

        self.patch_embed = PatchEmbed(3, dim, patch_size)
        self.pos_embed = SinCosPosEmbed(dim, grid)
        self.blocks = Stack(Block, depth=depth, dim=dim, heads=heads, drop_path=0.1)
        self.head = MeanPoolHead(dim, num_classes)

    def forward(self, x):
        x = self.patch_embed(x)
        x = self.pos_embed(x)
        x = self.blocks(x)
        return self.head(x)
Optimizer with proper Weight Decay Handling
optimizer = Optimizer(model, torch.optim.AdamW, lr=3e-4, weight_decay=0.05)

Modules

Module What it does
PatchEmbed Projects image patches into token embeddings.
PrefixTokens Prepends learned prefix tokens (e.g., class or register tokens).
LearnedAbsolutePosEmbed Adds learned absolute position embeddings to tokens.
SinCosPosEmbed Adds fixed 2D sinusoidal position codes to tokens.
RoPE2D Applies axial 2D rotary position embeddings to queries and keys.
Attention Supports MHA, GQA, pre-norm, QK-norm, and RoPE integration.
MLP / SwiGLU Feed-forward blocks with optional pre-norm and activation layers.
MeanPoolHead Mean-pools spatial tokens and projects to output classes.
DropPath Applies per-sample stochastic depth (drop path).
Stack Repeats any block class for a specified depth.
Optimizer Wraps any torch.optim class with automatic weight-decay grouping.

Changelog

0.1.0
  • Initial release: PatchEmbed, LearnedAbsolutePosEmbed, SinCosPosEmbed, RoPE2D, Attention, MLP, SwiGLU, MeanPoolHead, PrefixTokens, DropPath, Stack, Optimizer

⭐ Support the Project

Find it useful? Drop a star ⭐ to help others discover it.

License

The project is licensed under the Apache License 2.0.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases vimod

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229