Skip to content
View peremartra's full-sized avatar

Block or report peremartra

Report abuse

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

Report abuse
peremartra/README.md

Pere Martra | Research Engineer & LLM Optimization Expert

Rearchitecting LLMs.

Contact for Collaboration LinkedIn Hugging Face


Key Contributions & Active Research

My work is focused on two main pillars: making LLMs more efficient and making them more fair.


πŸ”§ LLM Efficiency & Optimization

Type Description
πŸ“– Engineering Rearchitecting-LLMs: Code on advanced structured pruning and optimization.
πŸ”¬ Research Adaptive Attention Bypass (AAB): Prototype of a dynamic inference system that adjusts attention layers based on input complexity.
πŸ“„ Preprint Exploring GLU Expansion Ratios in Llama-3.2 Models: My published methodology for structured pruning.
✍️ Article How to Prune LLaMA 3.2 and Similar LLMs: A practical guide on Towards Data Science.

βš–οΈ Fairness-Aware AI

Type Description
πŸ”₯ Flagship Library OptiPfair: My open-source library for fairness-aware model pruning and bias visualization. Try the Interactive Demo on HF Spaces!
πŸ”¬ Research Fairness Pruning Notebook: Implementation of a methodology for targeted neuron pruning to mitigate demographic bias.
✍️ Article Fairness Pruning: Precision Surgery to Reduce Bias in LLMs: My core methodology published on Towards Data Science.

Author & Educator

Book Cover for Large Language Models Projects I wrote "Large Language Models Projects" (Apress, 2024) to provide practical, hands-on guidance for AI practitioners.

The accompanying LLM Course on GitHub is a community resource with over 1,700 stars.

Areas of Collaboration

I am currently focused on my research and writing. I am open to select, high-impact collaborations where I can provide strategic value through Technical Advisory or Applied Research Partnerships.

Connect with Me

  • πŸ”— LinkedIn: Pere Martra
  • πŸ€— Hugging Face: oopere
  • ✍️ Medium: @peremartra
  • πŸ“§ Direct Inquiries: peremartra [at] uadla [dot] com

GitHub Stats

Pinned Loading

  1. Large-Language-Model-Notebooks-Course Large-Language-Model-Notebooks-Course Public

    Practical course about Large Language Models.

    Jupyter Notebook 1.7k 422

  2. FinLLMOpt FinLLMOpt Public

    Optimized Large Language Models for Financial Applications – Efficient, Scalable, and Domain-Specific AI for Finance.

    Jupyter Notebook 51 14

  3. optipfair optipfair Public

    Structured pruning and bias visualization for Large Language Models. Tools for LLM optimization and fairness analysis.

    Python 23 7

  4. Rearchitecting-LLMs Rearchitecting-LLMs Public

    Transform generic LLMs into specialized, fast and efficient models.

    Jupyter Notebook 14 2

  5. GANs GANs Public

    GAN tutorials using TensorFlow, Keras & Python

    Jupyter Notebook 9 2

  6. WizardSData WizardSData Public

    Synthetic datasets creation.

    Python 4