Skip to main content
rule

linux-nvidia-cuda-python-cursorrules-prompt-file — Cursor rule

Sets Cursor agent guidelines for the Hugging Face model quantization pipeline on Linux servers with Nvidia CUDA or AMD ROCm GPUs.

Install into Cursor · Manually: put the files in place All methods and platforms ↓
.cursor/rules/linux-nvidia-cuda-python-cursorrules-prompt-file.mdc
Open on GitHub

What linux-nvidia-cuda-python-cursorrules-prompt-file does

This rule sets instructions for working on the srt-model-quantizing project by SolidRusT Networks. The codebase downloads models from Hugging Face, quantizes them, and uploads the results back to a Hugging Face-compatible repository using Python or Bash.

The prompt instructs the assistant to handle failures gracefully, such as incompatible model structures, and suggest explicit fixes. It also requires keeping dead code out of the repository, maintaining updated instructions in README.md, and tracking task status in a dedicated markdown alignment file.

The project targets Linux servers exclusively. Hardware setups need either Nvidia CUDA or AMD ROCm GPUs to run the quantization scripts.

What it helps with

  • Build a model quantization pipeline for Hugging Face
  • Handle hardware and quantization failures with clear error outputs
  • Clean dead or duplicated code from the codebase
  • Keep README.md and project alignment markdown files in sync

Example prompts for the agent

  • Implement a model download and quantization script for Nvidia CUDA
  • Add error handling for unsupported Hugging Face model architectures
  • Update the development alignment markdown file with recent bug fixes

How to install linux-nvidia-cuda-python-cursorrules-prompt-file

Manually: put the files in place

.cursor/rules/linux-nvidia-cuda-python-cursorrules-prompt-file.mdc

Frontmatter: description, globs, alwaysApply

Step by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules

Questions about linux-nvidia-cuda-python-cursorrules-prompt-file

How to install linux-nvidia-cuda-python-cursorrules-prompt-file in Cursor?

Add the rule file to your project root at .cursor/rules/linux-nvidia-cuda-python-cursorrules-prompt-file.mdc.

What does this rule configure?

It defines instructions for developing the srt-model-quantizing pipeline, covering code cleanliness, error handling, and documentation updates.

What hardware is supported?

It runs exclusively on Linux servers equipped with Nvidia CUDA or AMD ROCm graphics cards.

Source text

linux-nvidia-cuda-python-cursorrules-prompt-file.mdc · CC0-1.0
---
description: "Cursor rules for Linux development with NVIDIA CUDA and Python integration."
globs: **/*
alwaysApply: false
---
1. **Project Overview**:

  - **App Name**: 'srt-model-quantizing'  
  - **Developer**: SolidRusT Networks  
  - **Functionality**: A pipeline for downloading models from Hugging Face, quantizing them, and uploading them to a Hugging Face-compatible repository.  
  - **Design Philosophy**: Focused on simplicity—users should be able to clone the repository, install dependencies, and run the app using Python or Bash with minimal effort.  
  - **Hardware Compatibility**: Supports both Nvidia CUDA and AMD ROCm GPUs, with potential adjustments needed based on specific hardware and drivers.  
  - **Platform**: Intended to run on Linux servers only.

2. **Development Principles**:

  - **Efficiency**: Ensure the quantization process is streamlined, efficient, and free of errors.  
  - **Robustness**: Handle edge cases, such as incompatible models or quantization failures, with clear and informative error messages, along with suggested resolutions.  
  - **Documentation**: Keep all documentation up to date, including the README.md and any necessary instructions or examples.

3. **AI Agent Alignment**:

  - **Simplicity and Usability**: All development and enhancements should prioritize maintaining the app's simplicity and ease of use.  
  - **Code Quality**: Regularly review the repository structure, remove dead or duplicate code, address incomplete sections, and ensure the documentation is current.  
  - **Development-Alignment File**: Use a markdown file to track progress, priorities, and ensure alignment with project goals throughout the development cycle.

4. **Continuous Improvement**:

  - **Feedback**: Actively seek feedback on the app's functionality and user experience.  
  - **Enhancements**: Suggest improvements that could make the app more efficient or user-friendly, ensuring any changes maintain the app's core principles.  
  - **Documentation of Changes**: Clearly document any enhancements, bug fixes, or changes made during development to ensure transparency and maintainability.

© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules

Similar IDE rules

All IDE rules for AI and ML →

From the same set210

nativescript-cursorrules-prompt-file A Cursor rule that tells the agent how to structure a NativeScript project and which libraries to reach for. ★ 41,024repo stars momen-cursurrules-prompt-file Instructs Cursor on building custom frontends on top of Momen.app headless BaaS. Guides GraphQL queries, Actionflow tasks, and WebSocket subscriptions. ★ 41,024repo stars medusa A Cursor rule that keeps Medusa code on one pattern: workflows, data models, services and admin customizations. ★ 41,024repo stars manifest-yaml-cursorrules-prompt-file A Cursor rule that tells the agent how to scaffold a small Manifest backend: project setup, the manifest/backend.yml file and limits on entities. ★ 41,024repo stars laravel-tall-stack-best-practices-cursorrules-prom A Cursor rule for Laravel and the TALL Stack. It guides PHP, Livewire, Alpine.js, and Tailwind CSS work in application code. ★ 41,024repo stars laravel-php-83-cursorrules-prompt-file A Cursor rule that walks the agent through building Laravel packages: plan, directory layout, naming standards, tests and docs. ★ 41,024repo stars landing-page-image-quality-cursorrules-prompt-file Stops Cursor from injecting placeholder image URLs into user-facing pages, requiring real project assets, fixed dimensions, and valid alt attributes. ★ 41,024repo stars kubestellar-console Rules for KubeStellar Console development across its React/TypeScript frontend and Go backend. Useful for dashboard cards and multi-cluster queries. ★ 41,024repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor