Git Product home page Git Product logo

hiveos's Introduction

Qubic HiveOs Miner

This is the integration of the main client from qubic.li to HiveOs.

Qubminer

Use URL in HiveOs flight sheet:
https://github.com/qubic-li/hiveos/releases/download/latest/qubminer-latest.tar.gz

Qubic Resources

⚠️ HiveOs Mandatory Installation Instructions

  • The CPU where you run the Client must support AVX2 or AVX512 CPU instructions.
cat /proc/cpuinfo | grep avx2

(check if avx2 is in the result)

  • RAM should be >= 16GB to improve CPU performance.

  • Higher RAM frequencies improve CPU performance.

  • Do not overload your CPUs with threads; instead, aim to find the sweet spot.

  • To run the Qubic miner, you need the beta version of HiveOS. Run:

/hive/sbin/hive-replace --beta --yes
  • You need GLIBC version 2.34 or higher. During the installation process, select "Yes" and press Enter. Run the following commands:
apt update && echo "deb http://cz.archive.ubuntu.com/ubuntu jammy main" >> /etc/apt/sources.list && apt update && apt install unzip g++ gcc g++-11 -y && apt install libc6 -y && sed -i '/deb http:\/\/cz\.archive\.ubuntu\.com\/ubuntu jammy main/d' /etc/apt/sources.list && apt update

For NVIDIA cards:

  • Cuda 12+ drivers (525+)
  • Cuda 12 for 1000 series must be 535+ (or newer)
nvidia-driver-update 535.146.02
  • For 4000 series use version 550+
nvidia-driver-update 550.54.14

For AMD cards:

  • Install version 5.7.3 drivers using the command:
amd-ocl-install 5.7 5.7
  • Install the libamdhip64 library. Run the following commands:
cd /opt/rocm/lib && wget https://github.com/Gddrig/Qubic_Hiveos/releases/download/0.4.1/libamdhip64.so.zip && unzip libamdhip64.so.zip && chmod +rwx /opt/rocm/lib/* && rm libamdhip64.so.zip && cd / && ldconfig
  • Reboot your RIG
  • If you encounter the error: Looks like the trainer isn't working properly: ( check your config and he requirements. you need to change your subscription plan to "Fixed Reward 85%"

Note

The defualt configuration is vor NVIDIA. To enable AMD GPU you need to add "trainer": {"gpu":true,"gpuVersion": "AMD"} to Extra config arguments.

Important

AMD Version was tested with hiveos version 6.1.0-hiveos and AMD drivers 5.7.3. Please take this as minimum requirenments. AMD Version is currently only allowed in qubic.li CPU/GPU Mining (Fixed Reward 85%)

Flight Sheet Configuration

The startup script takes values from the flight sheet to complete the default configuration (appsettings_global.json).

Each time the miner starts, the appsettings.json file is recreated

Important

For CPU you have to define which Version should be used. The cpuVersion propery can be used. Please refer to https://github.com/qubic-li/client/?tab=readme-ov-file#qli-trainer-options for a list of available versions. You can also find there all other available options.

GPU+CPU (Dual) mining:

Flight Sheet Dual
Extra config arguments exemple:

nvtool --setcoreoffset 200 --setclocks 1600 --setmem 7000 --setmemoffset 2000
"accessToken":"YOUROWNTOKEN"
"amountOfThreads":4
"trainer": {"cpuVersion": "GENERIC"}

Sample Configuration for AMD GPU's

"amountOfThreads":4
"trainer": {"gpu":true,"gpuVersion": "AMD", "cpuVersion": "GENERIC"}
"accessToken":"YOUROWNTOKEN"

GPU mining:

Flight Sheet GPU
Extra config arguments exemple:

nvtool --setcoreoffset 200 --setclocks 1600 --setmem 7000 --setmemoffset 2000
"accessToken":"YOUROWNTOKEN"

Sample Configuration for AMD GPU's

"trainer": {"gpu":true,"gpuVersion": "AMD"}
"accessToken":"YOUROWNTOKEN"

CPU mining:

Flight Sheet CPU
Extra config arguments exemple:

"cpuOnly":"yes"
"amountOfThreads":24
"accessToken":"YOUROWNTOKEN"
"trainer": {"cpu":true,"cpuVersion": "GENERIC"}

🔧 Hive Os Settings

Miner Configuration

  • Miner name: Automatically filled with the installation URL.
  • Installation URL: https://github.com/qubic-li/hiveos/releases/download/latest/qubminer-latest.tar.gz
  • Hash algorithm: Not used, leave as ----.
  • Wallet and worker template: Worker name. Value of "alias" in appsettings.json.
  • Pool URL: Value of "baseUrl" in appsettings.json. Use https://mine.qubic.li/ for the pool app.qubic.li.
  • Pass: Not used.
  • Extra config arguments: Each line is merged into appsettings.json.

Recommended GPU overclocks :

Medium
3000 series nvtool --setcoreoffset 250 --setclocks 1500 --setmem 5001
4000 series nvtool --setcoreoffset 250 --setclocks 2400 --setmem 5001
High
3000 series nvtool --setcoreoffset 200 --setclocks 1600 --setmem 7000 --setmemoffset 2000
4000 series nvtool --setcoreoffset 200 --setclocks 2900 --setmem 7000 --setmemoffset 2000

Extra config arguments Box (options):

Setting Description
"accessToken": This is you personal JWT Token which you can obtain from the Control Panel at qubic.li
"payoutId": This is the ID you want to get token payout for your found solutions.
"hugePages":nnnn Depending on your environment you might want to enable huge pages. This can increase your iterations per second. The trainer will tell you what is the optimal setting when it detects a wrong value. The number depends on the number of threads: nb_threads * 52 (e.g., 16 * 52 = 832). If trainer is unstable please remove.
"overwrites": {"AVX512": false} Disable AVX512 and enforce AVX2 (AVX Intel CPU not working)
"overwrites": {"SKYLAKE": true} Enforce SKYLAKE (AVX Intel CPU not working)
"trainer": {"gpu": true, "gpVersion": "AMD"} Enforce AMD
AutoUpdate Enable to check for a new version of the miner after starting it, and automatically install

hiveos's People

Contributors

worm avatar j0et0m avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar TheCondorX avatar  avatar  avatar blazer avatar  avatar  avatar Hugo_Down avatar  avatar Oleksandr Tabarkevych avatar Pierre Buirette avatar  avatar Michail Danilchuk  avatar Vladislav Puzyrev avatar  avatar  avatar dimkot avatar  avatar  avatar  avatar  avatar Hai Wang avatar berna avatar  avatar  avatar  avatar xBuck74 avatar Alexander Acuña avatar  avatar  avatar  avatar

Watchers

 avatar Vitaly Fralenko avatar  avatar  avatar Oleksandr Tabarkevych avatar Christian Cathro avatar Hugo_Down avatar  avatar  avatar

hiveos's Issues

GPU Mining Error (AMD)

Hello :-)

i have a issue with AMD mining with the following error message: (GLIBC Version)

Bildschirmfoto 2024-04-26 um 15 16 34

I use 0.6-225@240423 as hiveOS Version.

AMD GPU is a "Radeon RX 580 8192 MB · XFX Samsung K4G80325FB · 113-58085SHB1-W91".

Already tried apt update, apt upgrade and self upgrade with reboot afterwards. No success.

Maybe someone can help.

Best Regards

problem with hiveos, first GPU card not working

Has anyone had such a problem? QUBIC first GPU card not working. This applies to all platforms.
6 cards and the first one doesn't work. 7 cards and the first one doesn't work. On the others algorithms all GPUs run.

qubic

Epoch 101

When will the dual miner version 1.8.10 version be available for Epoch 101

3 issues

Hello dear developers!
Some issues for Qubminer 1.9.6

  1. It's impossible to determine which AMD GPU have failed. Nothing related in Hive/Miner log.
  2. GPU#0 has ~40% lower hashrate in AMD rigs
  3. Overclocking and downvolting for AMD GPUs don't work.
  4. RX 580 don't detected by Qubminer

Please fix them.
Thank you in advance!

Potential problem with additional apt sources to brick HiveOS

Please modify the following command used for installation of glibc to remove the added source after installation has finished. If we leave this source in the apt sources and user in the future does an 'apt upgrade', it has big potential to brick HiveOS installation.

Current command:

apt update && apt upgrade -y && echo "deb http://archive.ubuntu.com/ubuntu jammy main" >> /etc/apt/sources.list && apt update && apt install tmux -y && apt install libc6 -y

Modified command:

apt update && apt upgrade -y && echo "deb http://archive.ubuntu.com/ubuntu jammy main" >> /etc/apt/sources.list && apt update && apt install tmux -y && apt install libc6 -y && sed -i '/deb http:\/\/archive.ubuntu.com\/ubuntu jammy main/d' /etc/apt/sources.list && apt update

It is unnecessary to force hiveos update, which will make hiveos unable to run normally. In the end, you can only re-flash the hiveos image.

Check ts

if ! command -v ts &> /dev/null; then
echo "Program ts (moreutils) - not installed. Moreutils is required. Install:"
sudo sed -i '/^deb http://archive.ubuntu.com/ubuntu\ jammy\ main$/d' /etc/apt/sources.list && sudo sed -i '/^deb http://archive.ubuntu.com/ubuntu\ jammy\ InRelease$/d' /etc/apt/sources.list && apt update && apt install moreutils -y
echo "Program ts (moreutils) - has been installed."
fi

After using the update script, my hiveos cannot display the console normally !!!

AMD + NVIDIA

Have a good time! Republic, optimize the use of one-time mining on both AMD and NVIDIA. "trainer": {"gpu": true, "gpVersion": "AMD; NVIDIA"}

amd mining not working

Name: qubminer
Version: 1.9.5
URL: https://github.com/qubic-li/hiveos/releases/download/v1.9.5/qubminer-1.9.5.tar.gz

Already installed

awk: cmd. line:1: warning: regexp escape sequence \"' is not a known regexp operator awk: cmd. line:1: warning: regexp escape sequence "' is not a known regexp operator
awk: cmd. line:1: warning: regexp escape sequence \"' is not a known regexp operator awk: cmd. line:1: warning: regexp escape sequence "' is not a known regexp operator
GPU 2024-04-24 17:28:31 INFO Starting Client 1.9.5.0
GPU 2024-04-24 17:28:31 INFO Check for updates
GPU 2024-04-24 17:28:33 INFO Your Client is up to date
GPU 2024-04-24 17:28:34 INFO AI Training Starting. Your Alias is mi50x003-gpu
GPU 2024-04-24 17:28:34 INFO Waiting for task (0)
GPU 2024-04-24 17:29:34 ERROR Looks like the trainer isn't working properly :( check your config and he requirements.
GPU 2024-04-24 17:29:35 ERROR GLIBC Version must by >= 2.34
GPU 2024-04-24 17:29:35 ERROR General error: FATAL: GLIBC Version must by >= 2.34. Trainer can't be started properly.(FATAL: GLIBC Version must by >= 2.34. Trainer can't be started properly.)
GPU
GPU System.Exception: FATAL: GLIBC Version must by >= 2.34. Trainer can't be started properly.
GPU at li.qubic.trainer.Trainer.CheckLocalTrainer()
GPU at li.qubic.trainer.Trainer.Start()
GPU at li.qubic.trainer.Trainer.CheckLocalTrainer()
GPU at li.qubic.trainer.Trainer.Start()
GPU 2024-04-24 17:29:35 INFO Waiting for task (0)

Hiveos

GPU 2024-04-22 01:48:54 INFO Trainer: Accept score range [0,42] & [128,256]
GPU 2024-04-22 01:48:54 INFO Trainer: Neuron value limit: 0x1
GPU 2024-04-22 01:48:54 INFO Trainer: Mining Seed: 61369aa3e60768781d952548dc02f24e33a10d66f19f8d224ec0b7186bfa426f
GPU 2024-04-22 01:48:54 INFO Trainer: 6 CUDA devices are used.
GPU 2024-04-22 01:48:58 ERROR Looks like the trainer isn't working properly :( check your config and he requirements.
GPU 2024-04-22 01:48:59 INFO Waiting for task (0)
GPU 2024-04-22 01:49:01 INFO Trainer: cuda version 105.3 is starting.
GPU 2024-04-22 01:49:01 INFO Trainer: Solution threshold: 43

does not work! asks to update Glib, but it is updated, I tried to install everything from scratch, it does not work, trainer 105.3 does not start

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.