Noob’s Guide to building a Deep Learning

Noob’s Guide to building a Deep Learning

Among the buzzwords ter the tech world of 2018, two tower above the surplus: deep learning and cryptocurrencies. It seems that everyone I know (te tech) wants to learn thesis things. And guess what — so do I! So much so that I’m building my own rekentuig ter order to facilitate that learning.

What goes after are my notes-to-self spil I build a laptop to learn about deep learning and cryptocurrency mining. Ter the previous installments wij discussed assembling the hardware and installing the OS. Ter this installment I’ll talk about how to set up a cryptocurrency miner and connect to a pool.

To recap, ter case you’re just getting commenced with this series: my aim te purchasing and building my own PC wasgoed to have hardware on mitt to run machine learning algorithms on, and bring myself up to speed on the arousing advances happening ter AI. But te inbetween running training algorithms, my laptop (and it’s greedy thirsty GPUs) will sit fallow. Wij can’t have that!

When I’m not running the pc overheen training gegevens, I want to have it mining. Even if it’s making only a a little profit, it’s still better than nothing.


Your very first instinct when getting into mining might be to attempt and mine bitcoin. This would almost certainly be a mistake.

Bitcoin today is mined primarly via ASICS hardware, equipment specialized for mining bitcoins and other cryptocurrencies (but mostly bitcoins). Unless your objective ter life is to mine bitcoins — and I suppose there’s nothing wrong with that — ASICS hardware is not a good investment. And without ASICS hardware, it’s hard to rival with the other miners.

One of the fattest differences inbetween scrypt and SHA-256 is that the former relies strongly on computing resources aside from the processing unit itself, particularly memory. Conversely, SHA-256 doesn’t. This makes it difficult for scrypt-based systems to scale up and use lots of computing power, because they would have to use a proportional amount of memory, and that is expensive. — Danny Bradbury, Coindesk

While more specialized hardware is beginning to come to market, you’re most likely safe picking one of thesis scrypt currencies to mine. Ethereum is a good choice, so that’s what I’m going to embark with.

The instruments

Very first, enable the ethereum repository:

Then, install ethereum:

Next, you need to install the miner, ethminer . (There are other miners spil well, like qtMiner, cudaminer, eth-proxy). You can either install via apt-get or from source, because I’m a masochist I chose the latter.

Head on overheen to the releases pagina and download the most latest release:

And then attempt running ethminer . You should see something like:

This is good! It’s working, it just needs to be configured with options.

Eventually, the wallet. There’s lots of wallets available, with Waas being the officially supported version. You don’t actually need your wallet to be local, it can be hosted anywhere, including on an exchange like Coinbase.


Mining cryptocurrencies is kleuter of like a bunch of people te a field of haystacks looking for needles. Every so often somebody gets fortunate and finds one, shouts it out to the world, and makes a chunk of money, and then the process repeats.

This is all well and good for that fortunate finder, but — especially nowadays, when you’re challenging against industrial-strength mining operations — the chances of you solving a particular cryptographic puzzle very first are slender to nil. If you’re a puny fry like mij, you’re better off joining a mining pool.

A mining pool permits a group of miners’ computers to join coerces and work on earning cryptocurrency spil a team. When a fresh coin is mined, the profits will be collective with the contributors based on the amount of computing power they waterput te.


The very first pool I joined wasgoed ethpool, and I subsequently switched to ethermine (which emerges to be running the same code? it’s unclear) spil their payout scheme wasgoed more predictable.

To begin up mining, I ran:

Here’s the definitions for each option:

  • farm-recheck — <,n>, Leave n ms inbetween checks for switched work (default: 500). When using stratum, use a high value (i.e. 2000) to get more stable hashrate output
  • cuda-parallel-hash — Define how many hashes to calculate ter a kernel, can be scaled to achieve better show. Default=Four
  • cuda-block-size — Set the CUDA block work size. Default is 128
  • cuda-grid-size — Set the CUDA grid size. Default is 8192
  • cuda-streams — Set the number of CUDA flows. Default is Two

My understanding of farm-recheck is, it’s an for option to set how often the program checks for fresh work to work through. The lower you set it, the lower the chances of working on stale blocks, but set it too low and you might see instability ter the hashing output.

The other options I’m not 100% familiar with, and so I just went with the defaults. Feel free to leave a comment if you have a plain english explanation of them.

Eventually, you’ll pick the servers to connect to — I chose us1 and eu1 — and eventually waterput ter your wallet address and a name to identify your mining pc. You may need to open up the ports 4444 on your machine to permit connections.

If you’re having trouble with ethminer, there’s an active Gitter slagroom spil well.

Once you commence mining, you can go to your miner pagina and check out your stats. For example, the instrumentenbord view shows:

Which gives you a nice overview of your stats, and also a rough estimate of your payouts:


Once you’ve got your equipment mining, you may want to squeeze out every ounce of processing power. If so, here’s a few linksom to point you ter the right direction!


Leave a Reply

Your email address will not be published. Required fields are marked *