Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      June 1, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      June 1, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      June 1, 2025

      How To Prevent WordPress SQL Injection Attacks

      June 1, 2025

      7 MagSafe accessories that I recommend every iPhone user should have

      June 1, 2025

      I replaced my Kindle with an iPad Mini as my ebook reader – 8 reasons why I don’t regret it

      June 1, 2025

      Windows 11 version 25H2: Everything you need to know about Microsoft’s next OS release

      May 31, 2025

      Elden Ring Nightreign already has a duos Seamless Co-op mod from the creator of the beloved original, and it’ll be “expanded on in the future”

      May 31, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Student Record Android App using SQLite

      June 1, 2025
      Recent

      Student Record Android App using SQLite

      June 1, 2025

      When Array uses less memory than Uint8Array (in V8)

      June 1, 2025

      Laravel 12 Starter Kits: Definite Guide Which to Choose

      June 1, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Photobooth is photobooth software for the Raspberry Pi and PC

      June 1, 2025
      Recent

      Photobooth is photobooth software for the Raspberry Pi and PC

      June 1, 2025

      Le notizie minori del mondo GNU/Linux e dintorni della settimana nr 22/2025

      June 1, 2025

      Rilasciata PorteuX 2.1: Novità e Approfondimenti sulla Distribuzione GNU/Linux Portatile Basata su Slackware

      June 1, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Operating Systems»Linux»Your push was rejected because it contains files larger than 10 MiB

    Your push was rejected because it contains files larger than 10 MiB

    January 24, 2025

    I am working on a AI model that have a few files larger than 10MiB of trained model. While pushing those models to huggingface repository I got an error saying the files are too large to upload. Hugging Face has a size limit for single files, and files larger than 10MiB need special handling. This means I need to change the way I upload or store these files.

    This article will help you understand why this error happens and how you can fix it. You will learn how to push large files to a Hugging Face repository step by step.

    The Error

    Enumerating objects: 11, done.
    Counting objects: 100% (11/11), done.
    Delta compression using up to 16 threads
    Compressing objects: 100% (11/11), done.
    Writing objects: 100% (11/11), 326.86 MiB | 1.72 MiB/s, done.
    Total 11 (delta 1), reused 0 (delta 0), pack-reused 0
    remote: -------------------------------------------------------------------------
    remote: Your push was rejected because it contains files larger than 10 MiB.
    remote: Please use https://git-lfs.github.com/ to store large files.
    remote: See also: https://hf.co/docs/hub/repositories-getting-started#terminal
    remote:
    remote: Offending files:
    remote:   - my_model.safetensors (ref: refs/heads/master)
    remote: -------------------------------------------------------------------------
    To https://huggingface.co/tecadmin/testing-model
     ! [remote rejected] master -> master (pre-receive hook declined)
    

    The error indicates that you’re trying to push a file larger than 10 MiB to your Hugging Face repository without using Git Large File Storage (LFS). Hugging Face requires files over 10 MiB to be stored using Git LFS.

    Steps to Push Large Files Using Git LFS

    Here is the step by step instructions to resolve this issue:

    1. Install Git LFS:
    2. First, ensure that Git LFS (Large File Storage) is installed on your system. You can install it by running the following command:
      git lfs install
      

    3. Track Large Files: Identify the files larger than 10 MiB and track them with Git LFS. Run this command to track the specific file type or file:
      git lfs track "*.model"  # Replace *.model with your file type or specific file name
      

      This will add a reference to .gitattributes, telling Git to use LFS for those files.

    4. Add and Commit Changes:

      Add the changes to your repository, including the .gitattributes file, and commit them. Use the following commands:

      git add .gitattributes
      git add <file_name>
      git commit -m "Add large files using Git LFS"
      
    5. Push to the Repository: Push your changes to the Hugging Face repository. The tracked large files will now be uploaded using Git LFS.
      git push
      
    6. Verify File Upload: Check your Hugging Face repository to confirm that the large files have been successfully uploaded.

    By following these steps, you can easily resolve the issue of uploading files larger than 10 MiB to your Hugging Face repository.

    Still Getting Same Error

    If you are still facing the same issue, it may be your repository already contains a large file, you may need to remove it and re-commit using Git LFS:

    git rm --cached my_model.safetensors
    git add my_model.safetensors
    git commit -m "Re-add large file with Git LFS"
    git push origin master
    

    The post Your push was rejected because it contains files larger than 10 MiB appeared first on TecAdmin.

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleZEISS Demonstrates the Power of Scalable Workflows with Ampere Altra and SpinKube
    Next Article Error’d: Office Politics

    Related Posts

    Linux

    Photobooth is photobooth software for the Raspberry Pi and PC

    June 1, 2025
    Linux

    Le notizie minori del mondo GNU/Linux e dintorni della settimana nr 22/2025

    June 1, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Speed up your cluster procurement time with Amazon SageMaker HyperPod training plans

    Development

    Inkscape 1.4.1 Brings Snap App Fixes, New Features

    Linux

    New PHP Vulnerability Exposes Windows Servers to Remote Code Execution

    Development

    LastOSLinux: Una Versione Ottimizzata di Linux Mint 22.1 per Utenti Windows

    Linux

    Highlights

    CVE-2025-30476 – Dell PowerScale InsightIQ Remote Denial of Service Vulnerability

    May 15, 2025

    CVE ID : CVE-2025-30476

    Published : May 15, 2025, 7:15 p.m. | 45 minutes ago

    Description : Dell PowerScale InsightIQ, version 5.2, contains an uncontrolled resource consumption vulnerability. An unauthenticated attacker with remote access could potentially exploit this vulnerability, leading to denial of service.

    Severity: 5.3 | MEDIUM

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    Aaren: Rethinking Attention as Recurrent Neural Network RNN for Efficient Sequence Modeling on Low-Resource Devices

    May 29, 2024

    WordPress vs. Core Web Vitals: Navigating Google Core Web Vitals Challenges

    June 27, 2024

    Syntax Highlighting using the CSS Custom Highlight API

    April 28, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.