Skip to content
View mdvillagra's full-sized avatar

Block or report mdvillagra

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
mdvillagra/README.md

Marcos Villagra

I'm a computer scientist and research engineer at Bagel Labs, working on decentralized generative models, world and action modeling for robotics, and verifiable machine learning.

My background is in theoretical computer science, including computational complexity, cryptography, and quantum computation. My work connects that foundation with hands-on research engineering: diffusion models, expert routing, model training and evaluation, and Rust implementations of cryptographic primitives.

Google Scholar · Personal website · Hugging Face releases at Bagel Labs

Recent research

Selected collaborative work with my coauthors at Bagel Labs:

Open-source code and model releases

These are collaborative research releases; the links distinguish source code, documentation, and model weights.

Project What to explore Links
WorldDiT Robot policy checkpoints, inference code, and LIBERO evaluator. Hugging Face
Paris 2.0 Video-generation expert checkpoints and learned router. Hugging Face — gated access
Paris (2025) Decentralized text-to-image generation with independently trained experts. The public GitHub repository contains the paper and release documentation. Paper · GitHub · Hugging Face — gated access
ZKLoRA (2025) Zero-knowledge verification of private LoRA adapters. The current Python/Rust implementation uses native Halo2 proofs for transcript-bound, quantized LoRA delta correctness. Paper · Source code
Tiny Tool Use (2025) Config-driven LLM tool-use fine-tuning with SFT, DPO, synthetic data, and evaluation workflows. Source code · Qwen3-0.6B ToolBench checkpoint · Write-up

Model access and usage terms are documented on each release page.

Rust, cryptography, and systems experiments

Repository Focus
poseidon-benchmarks Criterion benchmarks of Dusk, CryptoExperts, Risc0, and Neptune implementations. Supported by Ethereum Foundation grant FY23-1156. Benchmark reports
poseidon-rust Compact Poseidon permutation and sponge implementation over arkworks fields, with parameter loading and regression tests.
halo2-practice A readable custom PLONK-style gate, witness assignment, and public-input constraints checked with MockProver.
radixsort Rust experiments sorting large field elements, benchmarked against the standard library.

The compact cryptography implementations are research and learning projects, not audited production libraries.

Teaching and mentoring

I design and maintain course material at Facultad Politécnica, Universidad Nacional de Asunción (FP-UNA):

  • Blockchain 2025: Solidity, Hardhat, ERC-721, and React/MetaMask examples, assignment scaffolding, and project workflows.
  • Matemática Aplicada 2024: applied mathematics final projects and submission workflows.

Research mentoring projects include:

  • FPUNA-ZK-Bridge: undergraduate thesis research on cross-chain bridges using zero-knowledge proofs, light clients, and smart-contract prototypes.
  • PINV01-25: a modular traffic-management research project combining SUMO/TraCI simulation, congestion analysis, traffic-signal optimization, and traceable storage through IPFS and the BlockDAG testnet.

My role across these activities includes course design, scaffolding, and research mentoring. Student submissions and collaborative project contributions remain credited to their respective authors.

Pinned Loading

  1. poseidon-benchmarks poseidon-benchmarks Public

    Criterion benchmarks comparing Rust Poseidon hash implementations.

    Rust 1

  2. poseidon-rust poseidon-rust Public

    Compact Rust implementation of the Poseidon hash over arkworks fields.

    Rust

  3. radixsort radixsort Public

    Radixsort algorithm in Rust for large integers.

    Rust