Below, I'll provide a break-even estimation for your planned setup changes, based on your goals: running inference on Ollama for Home Assistant tasks (e.g., weather queries or controlling lights) and using the system as a Monero (XMR) mining rig during daytime with solar power. Since you mentioned selling excess electricity at 0.07€/kWh, I'll factor that into the calculations where relevant.
This analysis assumes:
- Mining during daytime only: Let's say 8 hours/day (e.g., peak solar hours), as you mentioned solar power.
- Net electricity cost: If your solar setup covers mining usage, the net cost could be zero or even negative (if you sell excess). I'll calculate both scenarios: one with zero net cost (ideal solar offset) and one with a small residual cost if solar doesn't fully cover.
- Current XMR mining conditions: Based on recent data (as of October 2024), XMR price is around €145 per coin (using $160 USD/XMR and 1 USD ≈ 0.91 EUR). Mining rewards fluctuate due to network difficulty, but I'll use conservative estimates from tools like WhatToMine. Hash rates are approximate for AMD GPUs on RandomX (XMR's algorithm).
- Upgrade costs: Based on average market prices (e.g., used or discounted components).
- Other factors: Mining profitability can change rapidly, so treat this as an estimate. Inference tasks on Ollama are light and won't interfere much with mining, but ensure your system has good cooling to avoid thermal issues.
Step 1: Key Assumptions for Calculations
- GPU Hash Rates for XMR (RandomX):
- Your current RX 5600 XT: ~7.5 KH/s.
- RX 6750 XT (upgrade option): ~11 KH/s.
- RX 6800 (upgrade option): ~12 KH/s.
- Daily XMR Rewards: Based on current difficulty, a single GPU might mine ~0.015–0.025 XMR/day (solo or via a pool). I'll use:
- RX 5600 XT: ~0.015 XMR/day.
- RX 6750 XT: ~0.022 XMR/day.
- RX 6800: ~0.025 XMR/day.
- Daily Income from Mining: XMR mined × €145/XMR.
- Power Consumption:
- RX 5600 XT: ~140W average during mining.
- RX 6750 XT: ~220W.
- RX 6800: ~250W.
- Total system: Add ~65W for CPU + ~50W for other components (e.g., RAM, motherboard). So, total: ~255W for current setup, ~335W for RX 6750 XT, ~365W for RX 6800.
- Mining 8 hours/day: e.g., RX 6800 uses ~365W × 8 hours / 1000 = ~2.92 kWh/day.
- Electricity Offset: At 0.07€/kWh, if you sell excess solar, this could offset costs. I'll calculate:
- Scenario 1: Net electricity cost = 0 (solar fully covers mining).
- Scenario 2: Net electricity cost = actual usage (if solar doesn't fully cover, e.g., 0.07€/kWh for the kWh used).
- Break-even Formula: Break-even time (in days) = Upgrade cost / (Daily net profit from mining). Daily net profit = (Daily XMR income) - (Daily electricity cost).
Step 2: Upgrade Options and Break-Even Estimates
Here are the possible upgrades I suggested earlier, with break-even calculations. I'll focus on GPU upgrades since they directly impact mining profitability. (CPU upgrades like Ryzen 9 5900X would help with inference but not much for XMR mining, so I won't detail them here unless you ask.)
Option 1: No Upgrade (Baseline with RX 5600 XT)
- Cost: €0 (your current setup).
- Daily Mining Income:
- XMR mined: ~0.015 XMR/day.
- Income: 0.015 × €145 = €2.175/day.
- Daily Electricity Cost (8 hours/day):
- Usage: ~2.04 kWh/day (255W total system).
- Scenario 1 (Net cost = 0 via solar): Daily net profit = €2.175.
- Scenario 2 (Pay 0.07€/kWh): €2.04 kWh × 0.07€/kWh = €0.143/day cost. Daily net profit = €2.175 - €0.143 = €2.032.
- Break-even: Already at baseline, so break-even is immediate. This setup is profitable if electricity is free via solar, earning ~€2–€2.18/day.
Option 2: Upgrade to RX 6750 XT (€300 cost)
- Why?: Improves both inference (more VRAM for Ollama) and mining (higher hash rate).
- Daily Mining Income:
- XMR mined: ~0.022 XMR/day.
- Income: 0.022 × €145 = €3.19/day.
- Daily Electricity Cost:
- Usage: ~2.68 kWh/day (335W total system).
- Scenario 1 (Net cost = 0): Daily net profit = €3.19.
- Scenario 2: €2.68 kWh × 0.07€/kWh = €0.188/day cost. Daily net profit = €3.19 - €0.188 = €3.00.
- Break-even:
- Scenario 1: €300 / €3.19/day ≈ 94 days (about 3.1 months).
- Scenario 2: €300 / €3.00/day ≈ 100 days (about 3.3 months).
Option 3: Upgrade to RX 6800 (€350 cost)
- Why?: Even better for inference (16 GB VRAM) and mining (highest hash rate among options).
- Daily Mining Income:
- XMR mined: ~0.025 XMR/day.
- Income: 0.025 × €145 = €3.625/day.
- Daily Electricity Cost:
- Usage: ~2.92 kWh/day (365W total system).
- Scenario 1 (Net cost = 0): Daily net profit = €3.625.
- Scenario 2: €2.92 kWh × 0.07€/kWh = €0.204/day cost. Daily net profit = €3.625 - €0.204 = €3.421.
- Break-even:
- Scenario 1: €350 / €3.625/day ≈ 96.5 days (about 3.2 months).
- Scenario 2: €350 / €3.421/day ≈ 102 days (about 3.4 months).
Step 3: Summary of Break-Even Results
| Upgrade Option | Upgrade Cost (€) | Daily Net Profit (Scenario 1: Solar Offset) | Daily Net Profit (Scenario 2: Pay 0.07€/kWh) | Break-Even Time (Scenario 1) | Break-Even Time (Scenario 2) |
|---|
| No Upgrade (RX 5600 XT) | 0 | €2.175 | €2.032 | Immediate | Immediate |
| RX 6750 XT | 300 | €3.19 | €3.00 | ~94 days (3.1 months) | ~100 days (3.3 months) |
| RX 6800 | 350 | €3.625 | €3.421 | ~96.5 days (3.2 months) | ~102 days (3.4 months) |
- Key Insights:
- With solar offsetting electricity (Scenario 1), upgrades pay for themselves in about 3 months of daytime mining.
- If you have to pay for any electricity (Scenario 2), break-even extends slightly but is still under 4 months.
- Total potential earnings: After break-even, you'd earn the daily net profit indefinitely (until mining conditions change).
- Example: For RX 6800, after 100 days, you'd have ~€340 in net profit (minus any maintenance costs).
Step 4: Feasibility and Recommendations
-
Pros of Upgrading:
- For Ollama Inference: A better GPU (e.g., RX 6800) will handle larger models more efficiently, improving response times for Home Assistant tasks without overloading your CPU.
- For Mining: The extra hash rate makes upgrades worthwhile if XMR prices stay stable. You're mining only during solar hours, so environmental impact is low.
- Solar Benefit: If your setup sells excess power, this could make mining essentially free, accelerating break-even.
-
Cons and Risks:
- Volatility: XMR prices and mining difficulty can drop, reducing daily income. (e.g., if XMR falls to €100, daily profits halve, extending break-even to 6–8 months).
- Hardware Wear: Mining generates heat; ensure good cooling to avoid shortening your GPU's lifespan.
- Conflicting Use: Run mining only when not using Ollama for critical tasks. You could automate this (e.g., via scripts to pause mining during inference).
- AMD Compatibility: Stick with AMD for ROCm support in Ollama, but note that NVIDIA might be more efficient for some inference tasks (though you're set on AMD).
- Other Costs: Factor in potential expenses like cooling upgrades or electricity if solar doesn't cover everything.
-
My Recommendation:
- Go with the RX 6750 XT if you're budget-conscious (€300). It offers a good balance for both inference and mining, with break-even in ~3 months.
- If you can afford it, the RX 6800 (€350) is slightly better for future-proofing Ollama with larger models.
- Monitor mining profitability using tools like WhatToMine or XMRig. If conditions worsen, you could always stop mining and just use the upgraded GPU for inference.
- Before buying, double-check your PSU (600W) can handle the new GPU under load—it's likely fine, but test with a power calculator.
If you provide more details (e.g., your exact solar setup, current XMR mining hashrate, or Ollama-specific requirements), I can refine this estimate further!