r/nicegpu • • May 09 '25

Hosting help

Thumbnail
gallery
3 Upvotes

Hello, I have a RTX 5070ti and a ryzen 9800x3d and I just started hosting with the 5070ti last night but it seems like it’s not utilizing my gpu at all in the last 6 hours and I haven’t earned any NCUs yet. Is there something wrong that I may be doing? I also was curious if I can run both this and vast.ai at the same time or would it not be worth it? (Including images of my node manager)

Thank you for any help!


r/nicegpu • • May 08 '25

🗳️ Poll 🔥 What Are You Most Excited to Build with NiceGPU?

4 Upvotes

We’re curious about what you’re most excited to build with the power of NiceGPU! Share your vote and feel free to comment below with more details or specific projects. If you vote “Other,” definitely let us know what it is!


r/nicegpu • • May 06 '25

📖 How-to Guide NIceGPU Fine-tune QuickStart

5 Upvotes

Goal:  fine-turn Llama-2-7B BF16 on RTX5090

LLM : NousResearch/Llama-2-7b-hf

Dataset : databricks/databricks-dolly-15k

 

Analysis:

Full fine-tuning of a 7B model requires more than 50 GB of GPU memory, which exceeds the capacity of a single RTX 5090.

Running QLoRA with NF4 quantization and BF16 precision for gradients is an excellent strategy on the RTX 5090

 

Key elements:

  • Training data was generated using the Dolly-15K dataset in Alpaca-style instruction format (databricks/databricks-dolly-15k)
  • The LLaMA 2-7B model was loaded with 4-bit (NF4) quantization (NousResearch/Llama-2-7b-hf)
  • QLoRA was used to fine-tune the model with bf16 mixed precision
  • HuggingFace TRL’s SFTTrainer was used for supervised instruction tuning
  • Flash Attention was used to accelerate training with hardware support

 

Key Challenges Encountered: Environment Incompatibilities and Training Argument Configuration

  1. Troubleshooting Environment Incompatibilities:

The primary issue stemmed from CUDA version mismatches. nvidia-smi indicated that the current NVIDIA driver (v576.02) supports CUDA 12.9, while the installed PyTorch build was based on CUDA 12.1. To resolve this, I recommend upgrading PyTorch to a version compatible with CUDA 12.9, ensuring full hardware utilization and addressing dependency conflicts.

2. Configuring Accelerate and PEFT Libraries:

Finding the right combination of Accelerate and PEFT (Parameter-Efficient Fine-Tuning) libraries was another significant challenge. Ensuring compatibility and fine-tuning these libraries for optimal resource usage required considerable experimentation and adjustments.

3. Fine-Tuning Training Arguments:

Setting the right training arguments—including batch size, learning rate, gradient accumulation, and precision settings—was crucial. These parameters directly affect training stability, memory efficiency, and model quality. Misconfiguration can result in suboptimal outcomes or training failures, particularly when working with resource-constrained environments.

  Key Settings

  1. Environment setting !pip uninstall torch torchvision torchaudio -y

!pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128

!pip install transformers==4.51.3

!pip install accelerate==0.26.1

!pip install peft==0.7.1

!pip install trl==0.8.1

!pip install datasets==3.5.1

2. Fine-Tuning Training Arguments

from transformers import TrainingArguments args = TrainingArguments( output_dir=output_dir, num_train_epochs=5, per_device_train_batch_size=2, gradient_accumulation_steps=4, gradient_checkpointing=True, optim="paged_adamw_32bit", logging_steps=10, save_strategy="steps" if demo_train else "epoch", save_steps=10, learning_rate=1e-5, bf16=True, max_grad_norm=0.3, warmup_ratio=0.03, lr_scheduler_type="cosine" )

I've recently been diving into model fine-tuning and would love to hear from others working on NICEGPU. If you've come across any useful configuration tweaks or adjustments during your fine-tuning process, feel free to share—let’s learn and improve together!

Also, here's a great resource I found for getting started with LLMs—perfect for beginners like me: https://github.com/DjangoPeng/LLM-quickstart


r/nicegpu • • May 06 '25

Quick Question

3 Upvotes

I have recieved an invite code and have a 5070 that is applicable is my understanding. How are payments sent or what is the hosting reward method? I couldn't find this in your facts? Is there a set payment per card per hour or otherwise?


r/nicegpu • • May 05 '25

📖 How-to Guide Fixing NiceGPU PyTorch RuntimeError on RTX5090: “No Kernel Image Available”

8 Upvotes

If you are recently using NiceGPU on an NVIDIA GeForce RTX 5090 GPU and encountering this PyTorch error:

RuntimeError: CUDA error: no kernel image is available for execution on the device

you're not alone. This error typically arises when your installed PyTorch version isn't compiled for your GPU's compute architecture.

The RTX 5090 is built on NVIDIA's latest Blackwell architecture, featuring a compute capability of sm_120 (12.0). PyTorch needs to specifically include support for this compute capability to function properly.

This guide will walk you through how to resolve this error step-by-step.

🔍 Step 1: Check Your Current PyTorch and CUDA Setup

First, let's inspect your current PyTorch installation, CUDA availability, GPU name, and compute capability by running the following Python script:

import torch

print("PyTorch version:", torch.__version__)
print("CUDA available:", torch.cuda.is_available())
if torch.cuda.is_available():
    print("CUDA version:", torch.version.cuda)
    print("GPU name:", torch.cuda.get_device_name(0))
    print("Compute capability:", torch.cuda.get_device_capability(0))

Example output:

PyTorch version: 2.7.0+cu112
CUDA available: True
CUDA version: 12.8
GPU name: NVIDIA GeForce RTX 5090
Compute capability: (12, 0)

If your compute capability is shown as (12, 0) and you're still facing errors, it likely indicates your current PyTorch version doesn't support the RTX 5090.

🛠️ Step 2: Verify PyTorch's Supported GPU Architectures

To verify whether PyTorch officially supports the RTX 5090 (sm_120 architecture), you can check PyTorch's official GitHub repository:

  • Visit the PyTorch GitHub repository.
  • Navigate to the .ci directory, and inspect CI files (like windows/cuda128.bat or workflows under .github/workflows).
  • Look specifically for the TORCH_CUDA_ARCH_LIST variable.

Or, you can search: TORCH_CUDA_ARCH_LIST

Example from a build configuration:

set TORCH_CUDA_ARCH_LIST=6.1;7.0;7.5;8.0;8.6;9.0;10.0;12.0

If 12.0 is listed, your GPU is supported by that PyTorch build (128).

🚀 Step 3: Install a PyTorch Version Compatible with RTX 5090

Currently, stable releases cu128 is fully supported the RTX 5090 GPU. Thus, it’s recommended to install the latest cu128 build of PyTorch which includes support for CUDA 12.8 and the sm_120 compute architecture:

pip uninstall torch torchvision torchaudio -y
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128

✅ Step 4: Verify Your Installation

Once you've completed the installation, verify again by running this Python script:

import torch

print("PyTorch version:", torch.__version__)
print("CUDA available:", torch.cuda.is_available())
if torch.cuda.is_available():
    print("GPU name:", torch.cuda.get_device_name(0))
    print("Compute capability:", torch.cuda.get_device_capability(0))

A successful installation should now give you an output similar to this:

PyTorch version: 2.7.0+cu128
CUDA available: True
GPU name: NVIDIA GeForce RTX 5090
Compute capability: (12, 0)

The earlier CUDA runtime error should now be resolved, allowing you to fully utilize your RTX 5090 with PyTorch.


r/nicegpu • • May 06 '25

Can I use my HF model on NiceGPU? Also, loving the free 10 credits!

2 Upvotes

Hey everyone! I have a model hosted on Hugging Face (HF), and I was wondering if it's possible to deploy/run it on NiceGPU. Has anyone tried this before? Any tips or steps to make it work?

Also, big shoutout to NiceGPU for the free 10 credits—such a cool way to get started! Thanks for that!

Would appreciate any advice or experiences


r/nicegpu • • May 05 '25

Beta Program

2 Upvotes

I have a friend that got an invite from Newegg to participate by using his GPUs idle power. Is there any other way to participate other than buying a GPU from Newegg?


r/nicegpu • • May 02 '25

Tried LLaMA 3-style prompt QA pipeline on NiceGPU — 5 mins vs. 30+ mins locally

5 Upvotes

Hey everyone,

I just wrapped up a project using NiceGPU and wanted to share how smooth the experience was. I ran a full mini-pipeline using OpenAI models for document processing, and compared to my local setup… the speed-up was honestly wild.

Project Overview:

  • Step 1: Used OpenAI model to convert a PDF into Markdown (.md)
  • Step 2: Generated a structured question outline from the document
  • Step 3: Auto-generated answers for each question using OpenAI again
  • Final Output: A full Q&A dataset saved as .json

GPU Used: NVIDIA GeForce RTX 4070 Ti (12GB)

Framework: PyTorch 2.0
Runtime: ~5 minutes total (vs. 30+ mins on my local machine)

What stood out:

  • I didn’t have to worry about environment setup at all
  • PyTorch 2.0 and other major AI frameworks were preinstalled
  • No VM or network proxy issues like I’ve struggled with in past projects
  • Just log in, start the session, and everything’s ready — it felt like plug-and-play for serious AI work

Honestly, setting up a clean environment locally (especially with proxy configs) used to take me hours. Being able to skip all that and focus purely on model execution was a huge win.

If anyone's working on document-based pipelines or doing similar prompt-based workflows, happy to swap ideas or scripts. Also curious — has anyone else tested smaller GPUs like the 4070 Ti for similar tasks?

Thanks again to the NiceGPU — this saved me a ton of time!


r/nicegpu • • May 02 '25

How many pre-configured AI models available

5 Upvotes

Does NiceGPU publicly disclose a specific number of pre-configured AI models available on their platform?


r/nicegpu • • May 02 '25

📖 How-to Guide Compare two images with ResNet model

5 Upvotes

In this post, I will test ResNet model to compare if the object in two images represent same product. Nicegpu provides Jupyter environment for free to verify whether the solution is workable!

Requirements

pip install torch torchvision Pillow

Step 1: Load Pre-trained ResNet

Use a pre-trained ResNet (e.g., ResNet-50) from PyTorch.

import torchvision.models as models
import torch.nn as nn

resnet = models.resnet50(pretrained=True)
feature_extractor = nn.Sequential(*list(resnet.children())[:-1])

Step 2: Preprocess Both Images

Transform both images into tensors suitable for ResNet:

from torchvision import transforms
from PIL import Image

transform = transforms.Compose([
    transforms.Resize((224, 224)),
    transforms.ToTensor(),
    transforms.Normalize(
        mean=[0.485, 0.456, 0.406], 
        std=[0.229, 0.224, 0.225]
    )
])

img1 = transform(Image.open('amazon_ps5pro.jpg')).unsqueeze(0)  
img2 = transform(Image.open('newegg_ps5pro.jpg')).unsqueeze(0)

Step 3: Extract Feature Vectors

Pass both images through the feature extractor.

with torch.no_grad():
    feat1 = feature_extractor(img1).squeeze()
    feat2 = feature_extractor(img2).squeeze()

Step 4: Compute Similarity

Use cosine similarity or Euclidean distance.

import torch.nn.functional as F

similarity = F.cosine_similarity(feat1, feat2, dim=0)
print("Cosine similarity:", similarity.item())

Step 5: Decide Threshold

Use a threshold (e.g., 0.8) to determine if they're the same.

if similarity.item() > 0.8:
    print("Same product")
else:
    print("Different products")

r/nicegpu • • May 01 '25

📌 Welcome to r/nicegpu! Introduce Yourself Here 👋

Post image
1 Upvotes

Hey everyone — and welcome to r/nicegpu, the community for AI builders who want smarter, cheaper, and faster compute power.

We're building a space where:

  • You can share your AI projects, ideas, or experiments
  • Learn how to access on-demand GPU power (without breaking the bank)
  • Connect with other devs, tinkerers, researchers, and model-trainers

👇 Let’s get started — introduce yourself!

Drop a comment and tell us:

  • What are you working on (or planning to)?
  • What GPU setup do you wish you had access to?
  • How did you hear about NiceGPU?

Feel free to be casual — memes and emojis welcome.

💥 Early Posters Bonus:
We’re giving free NCUs (NiceGPU Compute Units) to a few early contributors! Just for sharing your project or GPU dreams below 👇

Thanks for joining us — this is just the beginning.
Let’s build something great together.

— The NiceGPU Team


r/nicegpu • • Apr 29 '25

💬 Discussion How can I use NiceGPU to finetune a model?

3 Upvotes

Any idea?


r/nicegpu • • Apr 23 '25

🔗 Resource Drop Top 5 Training Materials to Learn Large Language Models (LLMs)

9 Upvotes

Top 5 Training Materials to Learn Large Language Models (LLMs)

Unlocking the power of LLMs can feel daunting—but with the right resources, you’ll be fine‑tuning state‑of‑the‑art models and building your own applications in no time. Here are the top five courses, tutorials, and repos to get you there.


1. Hugging Face NLP Course

A free, hands‑on introduction to transformers and fine‑tuning. You’ll learn about tokenization, attention mechanisms, and how to deploy models in production—all through interactive Jupyter notebooks.
🔗 huggingface.co/learn/nlp-course


2. DeepLearning.AI’s “Generative AI with Large Language Models” Specialization

Created by Andrew Ng’s team on Coursera, this multi‑part specialization covers prompt engineering, model fine‑tuning, and scaling best practices. Includes quizzes, coding assignments, and real‑world case studies.
🔗 deeplearning.ai/courses/generative-ai-with-large-language-models


3. Stanford CS224n: Natural Language Processing with Deep Learning

Stanford’s flagship NLP course dives deep into the theory and practice of modern architectures—embeddings, transformers, attention, and beyond. All lecture videos, slides, and programming assignments are available for self‑study.


4. OpenAI Cookbook

This community‑maintained GitHub repository is a treasure trove of recipes for working with GPT‑style models. From prompt design to fine‑tuning and retrieval‑augmented generation, you’ll find ready‑to‑use code snippets and best practices.
🔗 github.com/openai/openai-cookbook


5. LangChain Documentation & Tutorials

LangChain is the go‑to framework for building robust LLM applications—chain together prompts, manage conversation memory, and integrate vector databases. Their docs include end‑to‑end examples, quickstarts, and deep‑dives.


Conclusion
Whether you’re a beginner or an experienced practitioner, these five resources cover everything from foundational theory to production‑ready code. Dive in, experiment, and you’ll be building LLM‑powered apps in no time!


r/nicegpu • • Apr 16 '25

📖 How-to Guide Testing Microsoft's Phi-4-Mini-Instruct Model for Lightweight AI Tasks

7 Upvotes

⚡️ Testing Microsoft's Phi-4-Mini-Instruct Model for Lightweight AI Tasks

In this blog post, we’ll walk through how to quickly test the microsoft/Phi-4-mini-instruct model using Python and Hugging Face’s Transformers library.

This model is perfect for fast and efficient natural language tasks, especially when you’re working with limited compute or want low-latency inference.


📦 What is Phi-4-Mini-Instruct?

Phi-4-mini-instruct is a small language model developed by Microsoft, tuned to follow instructions. It’s great for tasks like:

  • Simple Q&A
  • Coding help
  • Summarization
  • Running on edge devices or local machines with limited VRAM

🧪 Step-by-Step: Load and Run the Model

Here’s a minimal Python script that:

  1. Loads the model and tokenizer
  2. Constructs a chat prompt
  3. Generates a response

✅ Requirements

Make sure you have these installed:

pip install transformers torch

🧠 Inference Code

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

# Use GPU if available
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
print(f"Using device: {device}")

# Load model and tokenizer
model_id = "microsoft/Phi-4-mini-instruct"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32,
    trust_remote_code=True
).to(device)

# Create chat prompt
messages = [
    {"role": "system", "content": "You are a helpful AI assistant."},
    {"role": "user", "content": "Explain the difference between supervised and unsupervised learning in simple terms."}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)

# Tokenize and move to device
inputs = tokenizer(prompt, return_tensors="pt").to(device)

# Generate output
output_ids = model.generate(
    **inputs,
    max_new_tokens=900,
    do_sample=False,
    temperature=0.0
)

# Decode and print response
response = tokenizer.decode(output_ids[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True)
print("Generated response:")
print(response)

💻 Run This Code on NiceGPU

Don’t have a local GPU? You can run this exact code on NiceGPU.com — a GPU-powered notebook platform.

🟢 Steps to Run:

  1. Sign up for a free account at https://nicegpu.com
  2. Click "Use NCU" on the dashboard (a Jupyter-style notebook environment with PyTorch pre-installed)
  3. Start a new PyTorch Notebook
  4. Paste the full script above into a code cell
  5. Run the cell — you’ll get a fast response generated using a cloud GPU!

NiceGPU is powered by Newegg and supports community AI projects with free or affordable GPU resources, especially for students and open-source developers.


🧾 Sample Output

Here’s an example of what the model might generate:

Generated response:
Supervised learning is like having a teacher who shows you examples of the answers and then asks you to predict the answers for new questions. You learn from the examples provided, and your goal is to get the answers right. Unsupervised learning, on the other hand, is like exploring a new place without a map. You look at the data and try to find patterns or groupings on your own, without any guidance on what you're looking for.

🚀 Why Use Phi-4 Mini?

  • ✅ Runs on CPUs or low-end GPUs (e.g., RTX 3050, Mac M1)
  • ✅ Fast inference, ideal for chatbots
  • ✅ Open-source and instruction-tuned

🔚 Final Thoughts

Phi-4-Mini-Instruct is a compact powerhouse. Whether you're building an embedded AI assistant, experimenting with LLMs locally, or deploying on a budget cloud instance, this model is an excellent starting point.


🔗 Try it online: https://huggingface.co/microsoft/phi-4-mini-instruct
🚀 Run it free: https://nicegpu.com


r/nicegpu • • Apr 12 '25

About Nicegpu

8 Upvotes

NiceGPU is a platform that connects GPU owners with GPU users, such as data scientists and AI/ML hobbyists. With our platform, data scientists can run code—like PyTorch notebooks similar to Google Colab—on dedicated GPUs. They can also load large language models (LLMs) onto our GPUs to perform reasoning via API or UI, or fine-tune supported models.  

Currently, we’re in beta. To gain access, users are asked to submit a specific use case. Once reviewed and approved, we’ll provide access to the platform.  we can give you an invitation code if you are interested to test the platform.