<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kyle M Shannon on Medium]]></title>
        <description><![CDATA[Stories by Kyle M Shannon on Medium]]></description>
        <link>https://medium.com/@kmshannon?source=rss-ac2996b9004a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*ELsFr7CL89wiwvU4kf1djQ.jpeg</url>
            <title>Stories by Kyle M Shannon on Medium</title>
            <link>https://medium.com/@kmshannon?source=rss-ac2996b9004a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 07:37:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kmshannon/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Guide to Reading Academic Research Papers]]></title>
            <link>https://medium.com/data-science/guide-to-reading-academic-research-papers-c69c21619de6?source=rss-ac2996b9004a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c69c21619de6</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[reading-research]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[reading]]></category>
            <dc:creator><![CDATA[Kyle M Shannon]]></dc:creator>
            <pubDate>Sat, 21 Jul 2018 21:55:57 GMT</pubDate>
            <atom:updated>2019-01-09T17:08:54.840Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn to tackle this laborious process with a systematic approach!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AObKqAL-W3Zur1_9qb4ibQ.jpeg" /><figcaption>My desk full of papers. Slightly shuffled around for dramatic purposes of course.</figcaption></figure><p>Working in data science and machine learning is an exciting and challenging field. New techniques and tools are constantly percolating and honestly, it can feel overwhelming. Many of these new developments are found and first revealed in academic research articles. Extracting knowledge from these articles is difficult because the intended audience of these papers tend to be other researchers. Yet in order to stay current reading papers is an essential skill — luckily one that can be improved with diligence and practice.</p><p>In graduate school, you get good (should get good…) at reading papers and ingesting research. Not everyone will get training in this skill, that doesn’t mean you shouldn’t benefit from the knowledge these papers hold. Public tax money is how most of this research gets funded anyways! The goal here is to democratize academia, just a bit, and provide you with a scaffolding to apply when walking through a paper.</p><p>The way I read papers is not significantly unique, but it is effective and has served me well. Keep in mind it is not the only way, many techniques exist and as you read more and more I am sure you will find your own unique style.</p><p>This guide is broken down as follows:</p><ol><li>Learning this skill <strong>will</strong> help you! I promise</li><li>So I hear reading a paper is difficult. Why?</li><li>How are papers typically organized?</li><li>My “<em>bullet proof</em>” approach to reading papers</li><li>Tools to help you get the job done</li></ol><h3>Why Learn to Read Papers?</h3><p>Reading papers certainly builds character because It often takes many hours and there is no guarantee you walk away with the whole story. This is not to disparage you, but merely to be open and transparent. Reading papers is difficult, there are no two ways about it. Advances in fields such as machine learning, deep learning, data science, databases, and data engineering often come in the form of academic research, whose language is that of academic papers. Think about some of the techniques you might use: <a href="http://yann.lecun.com/exdb/publis/pdf/lecun-90e.pdf">Convolutional Neural Networks</a>, <a href="https://www.tandfonline.com/doi/abs/10.1080/14786440109462720">PCA</a>, and <a href="https://ac.els-cdn.com/S002200009791504X/1-s2.0-S002200009791504X-main.pdf?_tid=1197dcb8-c1dc-4289-98f1-314d1c0655a5&amp;acdnat=1532149238_cdf4072d598aa27334f6315be13a16e8">AdaBoost</a> (even <a href="http://proceedings.mlr.press/v32/cortesb14.pdf">Deep Boosting</a>!). These all came out of research, and yes they all have papers. Also, consider that there are many papers on the application and use of these techniques and when you are trying to solve a specific problem, these papers can be critical. Beyond staying current with research it is also worth traveling to the past and giving older papers a read. You will learn so much. I promise.</p><p>Looking at the field of deep learning it seems as though a new critical paper is coming out every few days or weeks. The only way to stay on top of it is to get a hold of the paper and give it a read.</p><h3>Where the Difficulties Arise…</h3><p>Here is a figure from a 2017 scientific paper¹ by Hubbard and Dunbar, about reading scientific papers. Scientific Paper inception!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y3cIEK-jej44VrTOLc92ng.png" /><figcaption><strong>Fig 2. Different sections of scientific papers are considered easy to read and important at different stages of academic careers.</strong></figcaption></figure><blockquote><strong>A</strong>: The proportion of participants considering a section easy to read (presented as ‘Somewhat easy’, ‘easy’ ‘very easy’ combined) as a function of career stage. Results of Chi-square tests are indicated on the left hand side. <strong>B:</strong> The mean importance rank of sections as a function of career stage. Error bars are omitted from individual points for clarity, with the sole error bar in grey representing the largest 95% confidence interval for any of the data points. Asterisks above data points indicate significant differences in response compared with the previous career stage as determined by Mann-Whitney post-hoc tests.</blockquote><p>One unsurprising result indicates the further an <em>academic</em> progresses into their career, the easier they find each section of a paper to read. An interesting point is how the various career stages view the importance of each section. Methods, Results and figures seem to be very important, ostensibly because as <em>academics</em> they have greater skill in their field, allowing them to be critical of a paper’s methods. It also means they know their field very well, thereofore, the introduction and abstract have less importance. Early stage PhD students find the methods, results, and figures fairly difficult to understand. This makes perfect sense as those are the areas of a paper that require the most knowledge of a field to get through. You are likely to have a similar experience.</p><p>What is it exactly that makes going through this process so difficult and time consuming?</p><ul><li>Authors tend to assume significant background knowledge from readers</li><li>Academic syntax is dense and thus difficult for readers to parse</li><li>Mathematical expressions are typically condensed and equations reordered for concision, often skipping steps in derivations</li><li>Substantial knowledge gaps are filled if a reader has read cited papers (sort of like — you need experience to get a job, but need a job to get experience!)</li><li>Not <strong>all</strong> conclusions drawn are correct. Small sample size and power, poor study design, researcher bias, and selective reporting ensures that you <strong>must</strong> be a critical reader!</li></ul><p>Clearly there is a lot to consider when reading a paper. Scared? Time to lighten the mood. Here is a <a href="https://www.sciencemag.org/careers/2016/01/how-read-scientific-paper">hilarious article</a> written on the horrors of reading papers by Dr. Adam Ruben from <a href="http://science.sciencemag.org/">Science</a>. It shows even scientists can agree that papers are both difficult to read and given how dense they are, will keep you regular.</p><p>Think about this, the more papers you read, the more you will learn and the faster this process of reading becomes. Trends start cropping up into plain view, and you begin to gain insight into the <a href="https://www.sciencebuddies.org/science-fair-projects/science-fair/steps-of-the-scientific-method">scientific method</a>, understand what certain authors and groups are working on, and form an appreciation for the field you are learning about. Over time all of this knowledge and skill builds into your ability to read papers quicker, more efficiently and with greater success. Learning to read papers is akin to learning to eat. It is messy at first, and your palette is not very well developed. But over time your eating experience enhances and you learn more about what you like and don’t like and when a chef’s meal is good and poor.</p><h3>How Papers are Organized</h3><p>Good news here. The overwhelming majority of papers follow, more or less, the same convention of organization:</p><ol><li>Title: Hopefully catchy, possibly sexy! Includes additional info about the authors and their institutions</li><li>Abstract: High level summary</li><li>Introduction: Background info on the field and related research leading up to this paper</li><li>Methods: Highly detailed section on the study that was conducted, how it was set up, any instruments used, and finally, the process and workflow</li><li>Results: Authors talk about the data that was created or collected, it should read as an unbiased account of what occurred</li><li>Discussions: Here is where authors interpret the results, and convince the readers of their findings and hypothesis</li><li>References: Any other work that was cited in the body of the text will show up here</li><li>Appendix: More figures, additional treatments on related math, or extra items of interest can find their way in an appendix</li></ol><h3>Developing a Systematic Approach</h3><p>When you sit down to read it’s important to have a plan. Simply starting to read from page one to the end will probably do you no good. Beyond retaining limited information, you will be exhausted and have gained very little for the tremendous effort. This is where many people stop.</p><p>Do plan to spend anywhere from <strong>3–6 hours</strong> to really digest a paper, remember they are <em>very</em> dense! Be ready and willing to make <strong>several passes</strong> through the paper, each time looking to extract different information and understanding. And please, do yourself a favor and do not <strong>read the paper front to end </strong>on your first pass.</p><p>Below are two lists. (i.) the systematic approach I take, more or less, when reading a paper (ii.) a general list of questions I try to answer as I go through the paper. I typically add more specific questions depending on the paper.</p><p>Let’s get started!</p><ol><li>Try to find a quiet place for a few hours and grab your favorite beverage (could be coffee, tea, or anything really). Nowadays I often find myself working in splendid coffee shops².</li><li>Start by reading the <strong>title</strong> and <strong>abstract</strong>. Aiming to gain a high level overview of the paper. What are the main goal(s) of the author(s) and the high level results. The abstract typically provides some clues into the purpose of the paper. Think of the abstract as advertisement.</li><li>Spend about 15 minutes skimming the paper. Take a quick look at the figures and note any keywords to look out for when reading the text. Try to <strong>get a sense for the layout of the paper </strong>and where things are located. You will be referencing back and forth between the different sections and pages later on, it helps knowing where stuff is located. Try not to spend time taking any notes or highlighting/underlining anything just yet.</li><li>Turn your attention to the <strong>introduction</strong>. The more unfamiliar I am with the paper/field, the longer I spend in the intro. Authors tend to do a good job consolidating background info and providing copious amounts of references. This section is usually the easiest to read and it almost feels like you are reading from a textbook. Take notes of other references and background info you don’t know or want to examine further.</li><li>This part is extremely critical. Carefully step through each <strong>figure</strong> and try to get a feeling for what they are telling you. When I was an undergrad, my neuroscience mentor gave me some good advice. Paraphrasing: “<em>Figures contain some of the most important information in a paper. Authors spend a lot of time creating them and deemed the information they contain to be important enough to communicate to the reader using a visual. Pay particular attention to them.</em>” You will not understand all the figures very well the first time you step through them, but you will gain some idea of what the authors think is most important, and you will also reveal valuable information about what to pay attention to when you read the other sections.</li><li>So far you have probably spent about an hour. Take a break. Walk a bit, enjoy a croissant!</li><li>Now you are ready to make a first pass through the paper. This time you should start to take some high level notes. You will come upon words, and ideas that are foreign to you. Don’t feel like you need to stop at every thing that does not make sense, you can simply mark it and move on. Aim to spend about an hour and a half. You don’t want to get bogged down just yet in all the gory details. The goal of the first pass is to get acquainted with the paper. Like a first date. Your going to learn about the paper, ask some good questions, maybe make it laugh. But you don’t want to get into every single little detail. That is rude. Begin again with the <strong>abstract</strong>, quickly skim through the <strong>introduction</strong>, give the <strong>methods</strong> section a diligent pass. Pay attention to the overall set up, the methods section includes a ton of detail you don’t need to scrutinize every part at this point. Finally, read the <strong>results</strong> and <strong>discussion</strong> section aiming for some clarity on the key findings and how these findings were determined. Remember, the authors are trying to convince you, the reader, of the merit and findings of their work.</li><li>Saved by the bell. Take a break, do some jumping jacks and get the blood flowing. Unless you’re in a coffee shop. Then don’t do that.</li><li>Now that you have a good overview of the paper you are going to get into the nitty gritty of the <strong>figures</strong>. Having read the methods, results and discussion section, you should be able to extract out more gems from the figures. Find those gems. Aim to spend another 30 minutes to an hour on the figures.</li><li>You should feel confident in taking a second full pass through the paper. This time you will be reading with a very critical eye. This pass can take a long time an hour or two, you can also save this for later in the day, or the following day. Pay particular attention to the areas you marked as being difficult to understand. Leave no word undefined and make sure you understand each sentence. This pass you are trying to really learn the paper. Skim through areas you feel confident in (abstract, intros, results). The focus should be on shoring up what you did not understand previously, and gaining a command of the methods section and finally being a critical reader of the discussion section. The discussion section is where you can consider the authors’ reasoning/rational and take what you learned from reading the paper and weigh it against evidence supplied in the paper. This section should spark some interesting questions for you to ask your friends, or colleagues. You can even email the authors of the paper with an insightful question! It might take them a while to get back to you, but authors do enjoy having dialogue regarding their research and are typically more than happy to answer a question for a reader.</li><li>At this point, you should feel confident talking about the paper with colleagues, thinking critically about the results, and being able to compare the work to other research in the field (if you have read other papers). To retain and enforce what you have learned, I suggest you write about the paper. It can simply be a few paragraphs about what you learned and the significance of the results. You can reference the list of questions you were answering as you read through the paper.</li></ol><p>As mentioned above, here is a general list of questions to help guide you. If you can answer these you have a solid understanding of the paper, at least to where you can communicate intelligently about it to others.</p><pre>1. What previous research and ideas were cited that this paper is building off of? (this info tends to live in the introduction)<br>2. Was there reasoning for performing this research, if so what was it? (introduction section)<br>3. Clearly list out the objectives of the study<br>4. Was any equipment/software used? (methods section)<br>5. What variables were measured during experimentation? (methods)<br>6. Were any statistical tests used? What were their results? (methods/results section)<br>7. What are the main findings? (results section)<br>8. How do these results fit into the context of other research and their &#39;field&#39;? (discussion section)<br>9. Explain each figure and discuss their significance.<br>10. Can the results be reproduced and is there any code available?<br>11. Name the authors, year, and title of the paper!<br>12. Are any of the authors familiar, do you know their previous work? <br>13. What key terms and concepts do I not know and need to look up in a dictionary, textbook, or ask someone?<br>14. What are your thoughts on the results? Do they seem valid?</pre><p>I recommend finding people either in person or online to discuss the paper. Start a journal club with a goal of getting through 1–2 papers a month. The amount of extra insight I have gained from discussing a paper with a friend is immense. Remember.. the only thing better than suffering through a paper alone, is suffering through it with friends!</p><p>On another note there was a good <a href="http://www.computing.dcu.ie/~ray/teaching/CA485/notes/01_how_to_read_a_paper.pdf">article</a> written by Keshav³ on how to read a paper. He introduces and explores a three phrase approach that might be of some interest to you. Give it a read as well!</p><h3>Tools to Help You Get the Job Done</h3><p>You can find papers primarily from several sources:</p><ul><li>a<a href="https://arxiv.org/">rXiv</a>: is an open-access repository (maintained at Cornell) where you can freely download and read pre-print research papers from many quantitative fields. Here is some more <a href="https://arxiv.org/help/general">general info</a> about arXiv. Many papers you find on the web will link back to the arXiv paper.</li><li><a href="https://www.ncbi.nlm.nih.gov/pmc/">PubMed</a>: They say it best: “<em>PubMed Central® (PMC) is a free full-text archive of biomedical and life sciences journal literature at the U.S. National Institutes of Health’s National Library of Medicine (NIH/NLM).</em>” PubMed has a robust search feature if you are looking for medical or life science related papers.</li><li><a href="https://scholar.google.com/">Google Scholar</a>: I use google scholar just as I would use google. Simply search for a topic, author or paper and google gets to work, on your behalf. As Google puts it “<em>Google Scholar provides a simple way to broadly search for scholarly literature. From one place, you can search across many disciplines and sources: articles, theses, books, abstracts and court opinions, from academic publishers, professional societies, online repositories, universities and other web sites. Google Scholar helps you find relevant work across the world of scholarly research.</em>”</li><li>Social media: I find out about a lot of new papers simply by following and keeping up with several people who actively publish. Added bonus.. they typically push other papers they find interesting and which you might want to know about or read.</li><li>Friends and colleagues: Find people interested in the same stuff as you, read papers with them and learn from each other. I get recommendations for good papers from friends. They act as good filters.</li><li>University: going to your local college or university (if there is one close by) gives you access to libraries, librarians (very helpful search wizards!) and many journals where you can find and read articles that are typically behind online paywalls.</li></ul><p>As you begin to read more papers you are going to want to store them somewhere. Tossing PDFs into a folder on your drive is all well and good, but there are creature comforts missing. Most researchers and grad students use a <a href="https://www.apa.org/science/about/psa/2013/12/reference-manager.aspx">reference manager</a>. <a href="https://www.zotero.org/">Zotero</a> and <a href="https://www.mendeley.com/">Mendeley</a> are very popular, I like Zotero. Recently, I have been using <a href="https://paperpile.com/app">PaperPile</a>. I like PaperPile because it is lightweight, lives in my browser, and uses Google Drive to back up and store all my PDFs. It has a simple, refreshing user interface, and it has a really good tagging and folder hierarchy system. I can also annotate PDFs in my browser and build citation lists when I write. You get a lot of these features with almost any reference manager, but I happen to like PaperPile best.</p><p>A reference manager will quickly become your best friend as you collect and read more and more papers.</p><p>Thanks for reading through this. I hope you found it helpful and it gave you some good ideas when tackling your next paper. Most people have their own unique process when reading a paper. I am sure you will develop your own tweaks in time, hopefully this is a good template for you to get started.</p><p>For now just<em> trust the process</em>.</p><p>I am also hoping that we will get some good feedback and comments with other tips and tricks from readers.</p><p>Cheers,</p><p>Kyle</p><blockquote>Reach me at: datasci@kmshannon.com</blockquote><blockquote>linkedin.com/in/kmshannon/</blockquote><blockquote>twitter.com/ButFirstData</blockquote><p>[1] Hubbard, K. E., &amp; Dunbar, S. D. (2017). Perceptions of scientific research literature and strategies for reading papers depend on academic career stage. <em>PloS one</em>, <em>12</em>(12), e0189753.</p><p>[2] Shout out to Chris at <a href="https://www.facebook.com/coffee.cycle/">CoffeeCycle</a>! Simply the best coffee in San Diego.</p><p>[3] Keshav, S. (2007). How to read a paper. <em>ACM SIGCOMM Computer Communication Review</em>, <em>37</em>(3), 83–84.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c69c21619de6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/guide-to-reading-academic-research-papers-c69c21619de6">Guide to Reading Academic Research Papers</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Up and Running with AWS EC2, S3, Linux and Deep Learning]]></title>
            <link>https://medium.com/@kmshannon/up-and-running-with-aws-ec2-s3-linux-and-deep-learning-c3c17c7b579c?source=rss-ac2996b9004a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3c17c7b579c</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Kyle M Shannon]]></dc:creator>
            <pubDate>Mon, 25 Jun 2018 18:39:39 GMT</pubDate>
            <atom:updated>2018-06-25T20:07:09.212Z</atom:updated>
            <content:encoded><![CDATA[<p>Setting up a simple EC2 Instance on Amazon AWS to perform deep learning. Sounds easy enough…</p><p>This article is broken up into two sections. First I go over some of the AWS web interface/dashboard menus. In the final section we head into the console and ssh into our EC2 instance and get it up and running. I assume you know how to use conda to activate a virtual environment, and have used at least one deep learning framework. I will not be going over either of these in this article.</p><p>Amazon pioneered the IaaS (infrastructure as a service) business with its AWS (Amazon Web Service). AWS is highly entrenched in the day-to-day activities for many data scientists and machine learning engineers. Knowing your way around the AWS web interface, as well as how to set up an <a href="https://aws.amazon.com/ec2/details/">EC2 instance</a> is a valuable skill to learn, and you can transfer some of this set up knowledge to other IaaS services such as Google Cloud. Here I attempt to pull back the fold and reveal a simple starter workflow to get your basic deep learning machine up and running. Sounds good? Ok let’s jump in!</p><p>First if you do not already have an AWS account, now is the time to sign up for one. Luckily Amazon does provide free EC2/S3 resources when you sign up to help you get acquainted with their cloud platform. You will not be able to perform any GPU deep learning for free, but you can set up a free EC2 to practice and play around. AWS <a href="https://aws.amazon.com/about-aws/whats-new/2017/10/announcing-amazon-ec2-per-second-billing/">charges by the second</a> and you don’t want to waste too much time when you are paying for GPU compute time.</p><h3>Setting Up your S3 Bucket</h3><p>Sign into the AWS console and navigate to S3. The following images will show you how to create a bucket, add a folder and upload some data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wkLOvBymXBeZlBSC3uaywQ.png" /><figcaption>Create a bucket by clicking the blue button</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bxoly1dLbzCdZaOn4liCZA.png" /><figcaption>Give it a name, I kept the default region, click next</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*smX_5F9vG2Qgouxtpl9ubw.png" /><figcaption>Your default permissions should look something like mine. Click next and then create the bucket</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SXyB9TRHH6FApX-F8XBeEw.png" /><figcaption>You will see your bucket now in S3. Click on the bucket name</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lF1aTj2H3z2Lb4PvBtzgUA.png" /><figcaption>Create a folder, click the folder to enter it, and then click upload</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6-QrKci6s5nB989MtKiuwg.png" /><figcaption>I dragged in some XML data from my desktop and clicked upload</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yYvXQxE8z7Y44-HPkbj_jA.png" /><figcaption>Awesome! we now have some data in the cloud in our S3 bucket.</figcaption></figure><h3>Generating your .pem Key File</h3><p>Now that you have some data in S3, it’s time to navigate back to the AWS main page and look for EC2 searching for EC2 or clicking on the link:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZRQsxNPAbRWaZizkJmHJiQ.png" /><figcaption>Main AWS Console</figcaption></figure><p>Before we start getting into the weeds you need to create a secret key file (.pem file) that you will link with the EC2 instance you create. This key file allows you to ssh into your EC2 instance.</p><p>Look at the left hand menu where it says <strong>Network &amp; Security</strong>. Click on <strong>Key Pairs </strong>and then on <strong>Create Key Pair</strong>. Follow the steps below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xCFuO1iFosjZIiI-ICzdMQ.png" /></figure><ol><li>Enter a name for the new key and click <strong>Create</strong>.</li><li>The key file (.pem file) will download and you will need to save it in a secure place. I put it in my home directory: ~/.secret/my_key.pem</li><li>You cannot download this key again. If you lose access to it, or delete it, you will not be able to log into the EC2 instance that is associated with this .pem file. <strong>NOTE</strong>! Never commit/push your .pem file to github…</li><li>If you plan to SSH into the EC2 via MacOS or Linux you will need to <a href="https://chmodcommand.com/chmod-400/">set the permissions of the .pem file</a> to be read only by the owner. Navigate to the directory where the .pem file is located and run:</li></ol><pre>$ chmod 400 my-key-pair.pem <em>#gives owner, you, read access</em></pre><h3>Creating and Launching your EC2 Instance</h3><p>Great. Now that your .pem file is securely stored you are ready to create an EC2 instance. Bring back the EC2 Dashboard and click on the blue button to launch an instance:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*47VWQZNIW1hmRkZO8a4vBw.png" /><figcaption>EC2 Dashboard</figcaption></figure><p><strong>STEP 1.</strong> Now you will be presented with many options for <a href="https://aws.amazon.com/mp/linux/">selecting an AMI</a> (Amazon Machine Image). An AMI is like a template virtual computer. It contains an operating system, applications, and other necessary software. It also includes permissions and security rules/roles as well as the ability to map additional devices for storage (e.g. <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html">EBS volumes</a> which kind of act like an additional hard drive you might plug into the SATA port of you physical computer, if you wanted more space).</p><p>As this article is geared towards setting up an EC2 for deep learning, I searched for deep learning under the community AMIs. You cant go wrong with either Ubuntu or Amazon Linux version 10.0.</p><ul><li>Amazon Linux is maintained/built by AWS, so it probably has better all around support and comes with a lot of preinstalled AWS management tools. Big Bonus!</li><li>Ubuntu (based on Debian Linux) has a richer package/software repository and a larger user base. Depending on what specific software you need, Ubuntu could be the better choice.</li></ul><p>Once you select an AMI (step 1) you will be able to choose the hardware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bp3ZrH9efecj7OTX_BT-CQ.png" /><figcaption>List of AMIs on AWS</figcaption></figure><p><strong>Step 2.</strong> If your goal is to just test out AWS, you can start with the free instance type: t2.micro. I will continue with GPU ready hardware to make use of the deep learning AMI we choose previously. The simplest one (p2.xlarge) is an <a href="https://www.nvidia.com/en-us/data-center/tesla-k80/">Nvidia k80</a> and is priced around $0.90 per hour. This is a really powerful and fast machine! The other options start to climb in $$$ and include multiple GPUs allowing you parallelize your deep learning models -Fancy! Amazon pricing has been “sort of mystical”, but they do provide you with an <a href="https://calculator.s3.amazonaws.com/index.html">online calculator</a> to help you get an idea for how much your you might bd looking to spend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2jRZCVUEV69q2sQB6VjF7A.png" /><figcaption>Choosing your EC2 Compute Specs</figcaption></figure><p><strong>Step 3.</strong> Next step is to configure general info about your instance. For now you shouldn’t need to mess around with these settings. The important ones to keep an eye out for though are:</p><ul><li>subnet: Make sure you select the specific availability zone where your S3 bucket is stored.</li><li>Request spot instance pricing can save you money on EC2s. You are essentially bidding on open EC2 space. If you are outbid you can have you machine pulled temporarily offline. So this can become a gamble. Remember to checkpoint your models… Matthew Powers has a <a href="https://medium.com/@mrpowers/playing-the-aws-ec2-spot-market-74b703454f4f">nice write up on spot pricing</a> (though the writeup is a few years old now).</li><li>Finally, make sure your shut down behavior is set correctly. I have it set to stop instead of terminate. As much as I enjoyed Terminator I &amp; II, I do not want my EC2 terminated… Unless I am doing the terminating. <strong>&gt;:D</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8pG0_U1cgV9NiSPsIYEzhQ.png" /></figure><p><strong>Step 4.</strong> Here you can increase the storage of your root drive, as well as add additional EBS volumes. I typically add on another EBS drive for data and so on, because you can detach these volumes and reattach/mount them to another EC2 instance. Very useful! General Purpose SSD is perfectly reasonable choice to go with for now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JwunRBLs53nQbUvKejWoLw.png" /><figcaption>Adding Additional Volumes</figcaption></figure><p><strong>Step 5. </strong>Not pictured, but this step you can simply add tags to your EC2 instance, as well as your volumes. AWS documentation has a great writeup on <a href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">tagging strategy</a>. For now its really of minimal concern. But be sure to give the AWS docs a look over!</p><p><strong>Step 6.</strong> Security. Security. Security. First and foremost, I will reiterate this again. Do not make your .pem file publicly available (github etc), nor your secret access keys… In this section you can set the access rights to your EC2. You can set it to your IP address, or leave it open so you can easily log in from anywhere. I typically VPN into my home network, so that is an option as well. For now I say keep it simple. You want to lower as many barriers when first starting out. But for production level environments and real work, yFou will want to look more into setting up the your EC2 properly/securely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y1ByLUomZA9SunrmitDDAQ.png" /><figcaption>Security Rules for your EC2</figcaption></figure><p><strong>Step 7.</strong> Finally you will need to choose a key (.pem file) to associate with this EC2 instance. This key is required to ssh into the instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M4TBTiwLnU76tl4cx5c8Bw.png" /></figure><p>Click Launch Instance and congratulations, you have AWS EC2 services starting up. While you wait, you can navigate to the directory where your .pem file is located. Then once your instance is running (green light), you will want to click the connect button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1bYBIK9U5-OmoL5EB87NKQ.png" /><figcaption>Ready to use EC2</figcaption></figure><p>This opens up a modal where you can copy paste the ssh command that will allow you to log into the EC2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H6lipCpEWxAe2LiRYwdS5g.png" /></figure><p>Run the .ssh command from the connect screen. This command is unique to each EC2 and will look slightly different from the one shown above. Once you run the command you may be asked yes/no, type “yes” and press enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*iMIzs3IoHAOTbae_5U_DBA.gif" /><figcaption>Boom. You should be in! Congratulations.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1i__CvyRdMkkHT1f0LIi3A.png" /><figcaption>Now that you are in your EC2 you are the master of your domain.</figcaption></figure><h3>Setting up your EC2 Instance</h3><p>First you should update and upgrade your EC2 software. Depeding on if you are using Amazon Linux or Ubuntu, this will be different (e.g. apt vs yum) Amazon docs have a <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-updates.html">good write up</a> on performing this on their linux AMI. If you are using Ubuntu you can do the following:</p><pre>$ sudo apt update &amp;&amp; sudo apt upgrade</pre><p>Now that you are in, you should be able to run <a href="https://www.systutorials.com/docs/linux/man/8-lsblk/">lsblk</a> to list the block level devices:</p><pre>$ lsblk<br>    NAME    MAJ:MIN RM SIZE RO TYPE MOUNTPOINT<br>    xvda    202:0    0   8G  0 disk<br>    └─xvda1 202:1    0   8G  0 part / <em>#root volume (OS is here)</em><br>    <strong>xvdb</strong>    202:16   0  10G  0 disk   <em>#Additional EBS volume</em><br>$ sudo file -s /dev/<strong>xvdb </strong>#Your vol might have different lettering!<strong><br>    </strong>/dev/<strong>xvdb</strong>: data</pre><p>Now you need to create a filesystem and mount the extra EBS drive you attached to the EC2 when you launched it.</p><pre><em># ----&gt; WARNING if you run this command on a drive with data already on it, the data will be wiped...</em></pre><pre># create an ext4 filesystem on the EBS drive<br>$ sudo mkfs -t ext4 /dev/<strong>xvdb</strong></pre><pre>    mke2fs 1.42.12 (29-Aug-2014)<br>    Creating filesystem with 2621440 4k blocks and 655360 inodes<br>    Filesystem UUID: 32dc04b7-5788-4796-95c5-ebcaa3ab4757<br>    Superblock backups stored on blocks:<br>     32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632</pre><pre>    Allocating group tables: done<br>    Writing inode tables: done<br>    Creating journal (32768 blocks): done<br>    Writing superblocks and filesystem accounting information: done</pre><p>Now it is time to set the mount point for your EBS volume.</p><pre><em># Create a mount point, basically an empty directory<br></em>$ sudo mkdir &lt;name-of-your-dir&gt; <em>#I will call mine test-ebs</em></pre><pre><em># Mount the new volume!</em><br>$ sudo mount /dev/<strong>xvdb</strong> /&lt;name-of-your-dir&gt; </pre><p>Now we are going to make some changes to your <a href="https://www.howtogeek.com/howto/38125/htg-explains-what-is-the-linux-fstab-and-how-does-it-work/">fstab file</a> so the EBS will be auto mounted if you happen to shut down/restart this EC2:</p><pre><em># back up your fstab file....<br></em>$ sudo cp /etc/fstab /etc/fstab.bak</pre><pre><em># Open fstab and make an entry<br></em>$ nano /etc/fstab.bak<br><em># Add the following to the bottom of your fstab files<br></em>  /dev/<strong>xvdb</strong> /test-ebs ext4 defaults,nofail 0 0</pre><pre>$ cat /etc/fstab.bak<br>    #<br>    LABEL=/     /           ext4    defaults,noatime  1   1<br>    tmpfs       /dev/shm    tmpfs   defaults        0   0<br>    devpts      /dev/pts    devpts  gid=5,mode=620  0   0<br>    sysfs       /sys        sysfs   defaults        0   0<br>    proc        /proc       proc    defaults        0   0<br>    <strong>/dev/xvdb   /test-ebs   ext4    defaults,nofail 0   0</strong></pre><pre><em># Should see nothing from this command, means fstab changes are good. mount -a causes all filesystems in fstab to be mounted as indicated.</em><br>$ sudo mount -a</pre><p>We also want to change who owns your EBS drive from Root to your user.</p><pre># find out your user name, typically <em>ec2-user</em> or <em>ubuntu<br></em>$ whoami<br>$ sudo chown -R &lt;username&gt;:&lt;username&gt; ~/&lt;name-of-your-dir&gt;/</pre><p>You can now set up your EBS volumes as you like. For a project, I typically need to git clone a repo, install postgreSQL, or some database software, along with other tools like Apache Spark and so on. Now would be a good time to check your conda environments:</p><pre># should see something similar to this...<br>$ conda env list<br>    # conda environments:<br>    #<br>    base                  *  /Users/ubuntu/miniconda3<br>    py2                      /Users/ubuntu/miniconda3/envs/py2<br>    py3                      /Users/ubuntu/miniconda3/envs/py3<br>    pytorch               /Users/ubuntu/miniconda3/envs/pytorch<br>    ...</pre><p>For example, I typically use git clone to add some repositories I need, as well as any additional software through conda or apt. You can check your current conda environments, if using a deep learning AMI you should see several envs each for a different frame work, e.g. TensorFlow, Caffe2, PyTroch and so on.</p><pre># should see something similar to this...<br>$ conda env list<br>    # conda environments:<br>    #<br>    base                  *  /Users/ubuntu/miniconda3<br>    py2                      /Users/ubuntu/miniconda3/envs/py2<br>    py3                      /Users/ubuntu/miniconda3/envs/py3<br>    pytorch               /Users/ubuntu/miniconda3/envs/pytorch</pre><p>And see a list of all the conda environments you have. You may see PyTorch, TensorFlow, Caffe2, and several others.</p><p>You can also run this command to make sure your Nvidia GPU is accessible by your deep learning frameworks via CUDA and cuDNN:</p><pre>$ nvidia-smi</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wD7t9CIGJhY0LlQJcU78Aw.png" /><figcaption>Output of nvidia-smi</figcaption></figure><h3>Sending Data Between EC2 and S3</h3><p>Finally we are going to ensure you can send files between EC2 and S3. First we will set up the AWS CLI (Command Line Interface). You need to get your AWS Access Key ID and AWS Secret Access Key ready. These can be generated from the security dashboard (image below) or are provided to you if your account is managed for you/you are in an IAM role (IAM roles are a large/important topic for another article, find out more about them <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html">here</a>).</p><p>Also please do not put these keys in your github repo and push them. You wouldn’t believe the number of stories I have heard…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PNrSbALUjUsBv54CGWKQOg.png" /><figcaption>Creating your Access Keys, press the blue button…</figcaption></figure><pre># you might need to install the aws cli depending on the AMI you choose. <br>$ <strong>pip install awscli --upgrade --user</strong></pre><p>For more info on installing the AWS CLI check out the relevant <a href="https://docs.aws.amazon.com/cli/latest/userguide/awscli-install-linux.html#awscli-install-linux-awscli">AWS docs</a>. the <a href="https://aws.amazon.com/cli/">AWS CLI</a> has a lot of commands very similar to Linux, e.g. cp, sync, and so on. It is a very useful tool and I highly suggest you read up a bit on it and learn how to use it. It is a one stop shop for interacting with many AWS services. If you already have the AWS cli you can continue. You need to add those secret keys onto your EC2 instance in the AWS configure step:</p><pre><em># might need sudo here...<br></em>$ aws configure</pre><pre>AWS Access Key ID [None]: ENTER-IT<br>AWS Secret Access Key [None]: ENTER-IT<br>Default region name [None]: <em># press return key</em><br>Default output format [None]: <em># press return key</em></pre><pre><em># Make sure these got saved....<br></em>$ aws configure list<br>        Name                    Value             Type    Location<br>       ----                    -----             ----    --------<br>    profile                &lt;not set&gt;             None    None<br> access_key     ****************AAAA shared-credentials-file<br> secret_key     ****************AAAA shared-credentials-file<br>     region                &lt;not set&gt;             None    None</pre><pre><em># Now you should see your AWS bucket(s)...<br></em>$ aws s3 ls<br>    2018-01-04 22:05:57 my_bucket_1<br>    2018-01-04 22:07:26 my_bucket_2<br>    2018-01-04 22:06:21 my_bucket_3</pre><pre><em># Lets test copying a file from S3 to our mounted EBS drive<br></em>aws s3 cp s3://my_bucket/LUNA16/csv-files/strings.xml ~/test-ebs/test-transfer/</pre><pre><em># Check your EC2 volume to make sure the file is in there.<br># If all is working then you are good to go!</em></pre><pre><em># If you want to transfer over more than one file you should use sync</em><br>$ sudo aws s3 sync s3://my_bucket/data_dir/xml-files/ ~/test-ebs/xml-files/</pre><p>Awesome! Now you can transfer data from S3 to your EC2 instance and vice versa. With these tools you are ready to begin training a deep learning model in the cloud with AWS.</p><p>Other software you should look into is a terminal multiplexer. I recommend Tmux. When you start tmux, it creates an interactive session on your EC2. You can attach and detach from the session as well, and it will still be there. Make sure to begin training your model while attached to a session. Why do this? Well if you don’t have an interactive session eventually your ssh pipe will break, you will be kicked out, and your model will fail to finish training. This can be a costly mistake.</p><blockquote>Now you can begin training while in your <a href="https://www.yelp.com/biz/coffee-cycle-san-diego">favorite coffee shop</a>, then head home and jump right back in!</blockquote><p>Tmux is easy to install on linux and pretty straightforward to use once you get the hang of it… like anything I suppose. Alex <a href="https://hackernoon.com/@alekshnayder?source=post_header_lockup">Shnayder</a> wrote a good intro article you should definitely check out!</p><p><a href="https://hackernoon.com/a-gentle-introduction-to-tmux-8d784c404340">A Gentle Introduction to tmux</a></p><p>One last piece of advice and this will hopefully save you from a costly $$$ mistake. If you do not manually shut down your EC2 instance it will run and run and run. Like this little guy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*EWOoc7KtvuSv689xMMT02A.gif" /><figcaption>these commercials seemed like forever ago!</figcaption></figure><p>Amazon will gladly charge you too. Don’t let that happen to you. You work hard for your money. One team of students from my masters program ‘accidentally’ burned through $2000 because of this mistake. You can shut down (not terminate) your EC2 easily from the EC2 dashboard.</p><p>Ok. I think we got through plenty. Hopefully this was helpful. Thanks for sticking with me!</p><p>Cheers,</p><p>Kyle</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3c17c7b579c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Up and Running with Ubuntu, Nvidia, Cuda, CuDNN, TensorFlow, and Pytorch]]></title>
            <link>https://medium.com/hackernoon/up-and-running-with-ubuntu-nvidia-cuda-cudnn-tensorflow-and-pytorch-a54ec2ec907d?source=rss-ac2996b9004a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a54ec2ec907d</guid>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[pytorch]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[cuda]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Kyle M Shannon]]></dc:creator>
            <pubDate>Thu, 21 Jun 2018 07:53:35 GMT</pubDate>
            <atom:updated>2018-07-24T16:25:46.382Z</atom:updated>
            <content:encoded><![CDATA[<h3>Up and Running with Ubuntu, Nvidia, Cuda, CuDNN, TensorFlow, and PyTorch</h3><h4>An in-depth look into getting Deep Learning frameworks installed on Ubuntu 18.04 and using your Nvidia GPU.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0htNXqv_vmH2C41O1UQniQ.png" /><figcaption>Ignore my old dusty PS3, I was able to find an orange Nvidia logo to match!</figcaption></figure><p><strong>This article and info is current/updated as of June 25th, 2018</strong></p><p>Building and training deep learning models is laborious task. Ensuring your environments, packages, and GPUs work in harmony adds to that effort. This guide gets fairly in-depth to help users that are relatively new to Linux. Ubuntu’s latest long term support (LTS) 18.04 was released around the end of April, so I decided to wipe my current Linux box and start from scratch. Including getting my deep learning environments installed. As 18.04 is relatively new, there may be some confusion when determining which packages to install. Hopefully this post helps alleviates those worries. I have been using this set up for a little over a month without any issues, but if you have or want to use Ubuntu 16.04 LTS these instructions should work fine as well. Either-way, I walk through this process slowly, and provide all terminal inputs and most of the output. I also not just show what I am doing, but try to explain why for newcomers to Linux/deep learning.</p><p>Hopefully you find this helpful! Let’s get into it…</p><h3>Preamble</h3><p><strong>Hardware of Choice</strong></p><ul><li>Nvidia GTX 1070 (I assume you have an Nvidia GPU)</li><li>Asus Micro-ATX B150M-A D3</li><li>16 gigs memory</li><li>Intel Core I5–6500 3.2GHz</li></ul><p><strong>Software of Choice</strong></p><ul><li><a href="https://www.ubuntu.com/desktop">Ubuntu</a> 18.04 LTS (Desktop Version)</li><li><a href="https://conda.io/miniconda.html">Miniconda</a> (you can also use <a href="https://anaconda.org/">Anaconda</a> — the main <a href="https://stackoverflow.com/questions/45421163/anaconda-vs-miniconda">difference</a>)</li><li>Python 3.6 (through miniconda)</li><li><a href="https://gnometerminator.blogspot.com/p/introduction.html">Terminator</a> for my terminal</li><li><a href="https://github.com/tmux/tmux/wiki">Tmux</a> Terminal multiplexer (an essential tool for deep learning)</li><li><a href="https://www.sublimetext.com/3">SublimeText</a> As my text editor</li><li><a href="https://code.visualstudio.com/">VSCode</a> As my main code editor. Use to be Atom…</li></ul><p><strong>I use the following conventions in this post</strong></p><ul><li>Anything proceeding a<strong> $ </strong>and is<strong> bold </strong>is a command for you to type into the terminal and run. Do not include the dollar sign.</li><li>Anything proceeding a <strong>#</strong> and is <em>italicized</em> is a comment and is there to provide more info for clarity. Do not add these to the terminal.</li><li>Any lines that are tabbed over are console output. Basically what you might see after running a command. I will not include some output, especially if it is long, or not very constructive.</li></ul><p>Here is an example:</p><pre><strong>$ run this comman</strong>d <em>#comment about the command, do not include this<br># comment about the proceeding output from the above command<br>    </em>some output that is potentially important…<br>    ack! test failed!!!<br>    Why did it fail? who knows… StackExchange Knows!</pre><h3><strong>GPU Compatibility</strong></h3><p>First order of business is ensuring your GPU has a high enough compute score. TensorFlow’s documentation states:</p><blockquote>GPU card with CUDA Compute Capability 3.0 or higher for building from source and 3.5 or higher for our binaries.</blockquote><p>We will not be building TensorFlow from source, but rather using their prebuilt binaries. Therefore you need a score of 3.5 or higher. Open your terminal and run:</p><pre><strong>$ sudo lshw -C display | grep product</strong><br>    product: GP104 [GeForce GTX 1070]</pre><p>Now that you have your GPU model you can cross reference it with <a href="https://developer.nvidia.com/cuda-gpus">Nvidia’s site</a> to determine your compute capability. In my case it is a score of 6.1, So I am good to go.</p><p>Next we want to ensure all the packages available to Ubuntu are the latest and greatest and then we want to install/upgrade them. Run:</p><pre><strong>$ sudo apt update</strong><br><strong>$ sudo apt upgrade</strong> <em>#will ask you Y/n if you want to upgrade</em></pre><p>Next we will install GPU drivers.</p><h3><strong>Nvidia Drivers</strong></h3><p>Ubuntu comes prepackaged with generic drivers for GPUs. These drivers are not highly optimized, and we don’t want to sacrifice any performance. You will first need to find and install the latest Nvidia Drivers for your GPU. There are a few options as outlined in this good <a href="https://askubuntu.com/questions/61396/how-do-i-install-the-nvidia-drivers/61433#61433">StackExchange post</a>:</p><blockquote><strong>Nvidia PPA</strong> — Great Performance. It works out of the box for most cards by using the driver included in the PPA (Which are different for each generation of Nvidia cards (This is explained below).</blockquote><blockquote><strong>Ubuntu Default Recommended Driver*</strong>— Ubuntu does an amazing job in figuring out which Nvidia driver you need depending on the card you are using.</blockquote><blockquote><strong>Nouveau</strong> — This is the open source implementation of the Nvidia driver. They also do an amazing job and although they are not on par with the official drivers or the ones in the PPA (Even more so with the latest Nvidia cards), the speed of development, the commitment, dedication and advancements that they do per week, gives confident that this is fact an option to have and promote.</blockquote><blockquote><strong>Official Nvidia Site</strong> — This are the official drivers (Same as the ones in the PPA), but the difference is that they do not upgrade automatically and have some issues when updating, uninstalling and installing (Very rare but it happens).</blockquote><p>After looking into which driver would be best to use, I went with Ubuntu’s PPA. The official <a href="https://www.nvidia.com/Download/index.aspx?lang=en-us">Nvidia driver</a> had known issues with <a href="https://askubuntu.com/questions/149206/how-to-install-nvidia-run">X Server</a> and would require more effort to get it working. No thanks… The default Ubuntu driver lacks performance. And the Nouveau driver, while it looks good and open source is nice, it isn’t as performant. Adding the Ubuntu PPA is the best option as they have the latest Nvidia official drivers and have been tested on Ubuntu, so it should be a smooth installation. Ok, to do this run the following command:</p><pre><strong>$ sudo add-apt-repository ppa:graphics-drivers/ppa</strong></pre><p>This command will add the PPA repository to Ubuntu’s packaging system. What does this mean? Ubuntu is built off of Debian Linux and thus uses Debian’s dpkg packaging system. This system provides Ubuntu with applications to install. Advanced Package Tool (APT) allows you to easily interact with dpkg from the terminal. It oversees package dependencies and upgrading a lot of the software in your OS.</p><p>Next you need to determine which driver you need to install. Go to the <a href="https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa">PPA repository</a> and scroll down to the bottom of the page. Based on Ubuntu 18.04 I had a choice between nvidia-driver-390 and nvidia-driver-396. I choose 390 because it had been out in the wild longer and thus more potential bugs and issues would have been uncovered by now.</p><p>Run the following command to install the driver.</p><pre><strong>$ sudo apt install nvidia-driver-390</strong></pre><p>Go ahead and bookmark your tabs, it’s time to reboot your computer! I will still be here when you’re back up and running…</p><p>Great you’re back. Hopefully! Ok let’s check to make sure the driver was installed correctly:</p><pre><strong>$ nvidia-smi</strong></pre><p>Your output should look similar to the one below, except your driver version number may be different, as well as your GPU and processes. If it does congratulations! You have Nvidia drivers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*ID1kdzdkSBrzcDugBhqzBQ.png" /><figcaption>output of nvidia-smi</figcaption></figure><p>To wrap up the driver portion, you are going to make sure APT doesn’t upgrade your driver. Remember you added the PPA to APT and now it is responsible for managing this software. It is important that you stop the software we are installing from upgrading.</p><p>Getting GPU support to work requires a symphony of different hardware and software. To ensure compatibility we are going to ask Ubuntu to not update certain software. You can remove this hold at any time. Run:</p><pre><strong>$ sudo apt-mark hold nvidia-driver-390</strong><br>    nvidia-driver-390 set on hold.<br><em># To reverse this operation run:<br># sudo apt-mark unhold package_name</em></pre><p>Now onto to CUDA!</p><h3><strong>Installing CUDA 9.0</strong></h3><p>The question is CUDA 9.0 vs 9.1. From what I have read it seems that version 9.1 works if building from source, whereas 9.0 works out of the box when installing from the binaries. Installing from binaries makes this process just that less tedious, let’s stick with that for this go around.</p><p>Go ahead and open up the <a href="https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html">CUDA docs</a>. These instructions can be fairly involved to follow, but let’s step through them one-by-one.</p><p>First we are going to check what gcc and g++ version you have installed.</p><pre><strong>$ gcc — version</strong><br>    gcc (Ubuntu 7.3.0–16ubuntu3) 7.3.0<br><strong>$ g++ — version</strong><br>    g++ (Ubuntu 7.3.0–16ubuntu3) 7.3.0</pre><p>When you installed the PPA Nvidia drivers, the drivers also installed gcc and g++ version 7.x. This is fine, however TensorFlow and cuDNN requires version 6.x for compatibility. We will leave this issue alone for now, but at some point a test will fail, we will resolve this issue then after installing CUDA.</p><p>Let’s install the kernel headers. For more info on what Linux headers are, go <a href="https://askubuntu.com/questions/598948/what-does-linux-headers-uname-r-do">here</a> and especially <a href="https://answers.launchpad.net/ubuntu/+question/54157">here</a>. Essentially, kernel headers are files used to compile the kernel and any other applications/software (in this case CUDA) that depend on information within those header files. To install run:</p><pre><strong>$ sudo apt install linux-headers-$(uname -r)</strong><br>    Reading package lists… Done<br>    Building dependency tree<br>    Reading state information… Done<br>    linux-headers-4.15.0–23-generic is already the newest version      (4.15.0–23.25).<br>    linux-headers-4.15.0–23-generic set to manually installed.</pre><p>Now you need to download CUDA and install it. You can grab CUDA 9.0 from this official <a href="https://developer.nvidia.com/cuda-90-download-archive">Nvidia archive</a>. Look at the image below to see which options to select.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*9u7ufh18thOy8P0Mpf81YA.png" /></figure><p>Once it is finished downloading run the following:</p><pre><strong>$ cd Downloads/</strong> <em>#navigate to where the .deb file downloaded<br></em><strong>$ sudo dpkg -i cuda-repo-ubuntu1704–9–0-local_9.0.176–1_amd64.deb</strong><br>    Selecting previously unselected package cuda-repo-ubuntu1704–9–0-local.<br>    (Reading database … 224086 files and directories currently installed.)<br>    Preparing to unpack cuda-repo-ubuntu1704–9–0-local_9.0.176–1_amd64.deb …<br>    Unpacking cuda-repo-ubuntu1704–9–0-local (9.0.176–1) …<br>    Setting up cuda-repo-ubuntu1704–9–0-local (9.0.176–1) …<br>    The public CUDA GPG key does not appear to be installed.<br>    To install the key, run this command:<br>    sudo apt-key add /var/cuda-repo-9–0-local/7fa2af80.pub <em># run the command the command they provide to install the GPG key<br></em><strong>$ sudo apt-key add /var/cuda-repo-9–0-local/7fa2af80.pub<br>$ sudo apt update</strong><br><strong>$ sudo apt install cuda</strong> <em>#might take a few minutes to finish</em></pre><p>Congratulations! CUDA 9.0 is installed. Let’s hold this package as well from updates:</p><pre><strong>$ sudo apt-mark hold cuda</strong></pre><p>Lastly you need your PATH variable in your .bashrc file. This hidden file is located in your home directory. You need to add the following line to the end of your .bashrc file:</p><pre>export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}}</pre><p>You can use any text editor you like, or nano or vim. but open your .bashrc file and add that to the end of the file save it and close. You will need to start a new terminal session (close and reopen your terminal) for the .bashrc file changes to get loaded. .bashrc is a shell script that bash runs every time a session is started. You are adding the PATH variable so that CUDA can be found in your PATH.</p><pre><strong>$ subl .bashrc</strong> <em>#opens .bashrc file in sublime text, I copy pasta the above line of code then save and close sublime.<br></em><strong>$ cat .bashrc | grep cuda</strong><br>export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}} <em>#you should see this output</em></pre><p>Great CUDA is ready to be tested!</p><pre><strong>$ cd <em>#navigate back to home<br></em>$ cat /proc/driver/nvidia/version</strong><br>    NVRM version: NVIDIA UNIX x86_64 Kernel Module 390.67 Fri Jun 1 04:04:27 PDT 2018<br>    GCC version: gcc version 7.3.0 (Ubuntu 7.3.0–16ubuntu3)<br><strong>$ nvcc — version</strong><br>    nvcc: NVIDIA (R) Cuda compiler driver<br>    Copyright © 2005–2017 NVIDIA Corporation<br>    Built on Fri_Sep__1_21:08:03_CDT_2017<br>    Cuda compilation tools, release 9.0, V9.0.176</pre><p>If this is all good, then CUDA is installed and working correctly. GCC is still at version 7.x, but we will fix this soon. For now let’s tackle cuDNN.</p><h3><strong>cuDNN</strong></h3><p>Check out the official <a href="https://docs.nvidia.com/deeplearning/sdk/cuDNN-install/index.html#installcuda">docs</a> on cuDNN. We will be stepping through these. First you need to make sure you have created a free account with <a href="https://developer.nvidia.com/">Nvidia’s Developer Program</a>. Once you sign up, verify your email and are ready to go, you can sign in from <a href="https://developer.nvidia.com/rdp/cuDNN-download">this link</a> and it should take you directly to the download cuDNN page. Follow the steps in the images below to find the specific cuDNN version. I choose cuDNN version 7.0.5 over 7.1.4 based on what TensorFlow suggested for optimal compatibility at the time.</p><p>Once at the Download page agree to the terms and then look at the bottom of the list for a link to archived cuDNN releases. 7.0.5 is an archived stable release.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jpqWPJ98hBEj3fBI-Li4aQ.png" /></figure><p>This will take you to the archives, where you can now look for cuDNN v7.0.5 for CUDA 9.0.</p><p>Download all three of the following .deb files:</p><ul><li>cuDNN v7.0.5 Runtime Library for Ubuntu16.04 (Deb)</li><li>cuDNN v7.0.5 Developer Library for Ubuntu16.04 (Deb)</li><li>cuDNN v7.0.5 Code Samples and User Guide for Ubuntu16.04 (Deb)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*cSInr02xIO4y9LseZlOn7w.png" /></figure><p>After you have downloaded them, run these next commands:</p><pre><strong>$ cd Downloads/</strong> <em>#navigate to where you downloaded them<br># Start with the runtime file<br></em><strong>$ sudo dpkg -i libcuDNN7_7.0.5.15–1+cuda9.0_amd64.deb</strong><br>    Selecting previously unselected package libcuDNN7.<br>    (Reading database … 236355 files and directories currently installed.)<br>    Preparing to unpack libcuDNN7_7.0.5.15–1+cuda9.0_amd64.deb …<br>    Unpacking libcuDNN7 (7.0.5.15–1+cuda9.0) …<br>    Setting up libcuDNN7 (7.0.5.15–1+cuda9.0) …<br>    Processing triggers for libc-bin (2.27–3ubuntu1) …<br>    /sbin/ldconfig.real: /usr/local/cuda-9.0/targets/x86_64-linux/lib/libcuDNN.so.7 is not a symbolic link</pre><pre><em># then the developer file — dev typically includes the source code<br></em><strong>$ sudo dpkg -i libcuDNN7-dev_7.0.5.15–1+cuda9.0_amd64.deb</strong><br>    (Reading database … 236362 files and directories currently installed.)<br>    Preparing to unpack libcuDNN7-dev_7.0.5.15–1+cuda9.0_amd64.deb  <br>    Unpacking libcuDNN7-dev (7.0.5.15–1+cuda9.0) over (7.0.5.15 1+cuda9.0) …<br>    Setting up libcuDNN7-dev (7.0.5.15–1+cuda9.0) …<br>    update-alternatives: using /usr/include/x86_64-linux    gnu/cuDNN_v7.h to provide /usr/include/cuDNN.h (libcuDNN) in auto mode</pre><pre><em># finally the doc file — necessary for running the installation test<br></em><strong>$ sudo dpkg -i libcuDNN7-doc_7.0.5.15–1+cuda9.0_amd64.deb</strong><br>    Selecting previously unselected package libcuDNN7-doc.<br>    (Reading database … 236362 files and directories currently installed.)<br>    Preparing to unpack libcuDNN7-doc_7.0.5.15–1+cuda9.0_amd64.deb …<br>    Unpacking libcuDNN7-doc (7.0.5.15–1+cuda9.0) …<br>    Setting up libcuDNN7-doc (7.0.5.15–1+cuda9.0) …</pre><p>Great, that wasn’t too bad. Let’s test the cuDNN installation.</p><pre><strong>$ cd</strong> <em>#back to home<br></em><strong>$ cp -r /usr/src/cuDNN_samples_v7/ $HOME</strong> <em>#copy the test mnist files over to home.<br></em><strong>$ cd $HOME/cuDNN_samples_v7/mnistcuDNN</strong><br><strong>$ make clean &amp;&amp; make</strong><br>    rm -rf *o<br>    rm -rf mnistcuDNN<br>    /usr/local/cuda/bin/nvcc -ccbin g++ -I/usr/local/cuda/include -IFreeImage/include -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_53,code=compute_53 -o fp16_dev.o -c fp16_dev.cu<br>    In file included from /usr/local/cuda/include/host_config.h:50:0,<br>    from /usr/local/cuda/include/cuda_runtime.h:78,<br>    from &lt;command-line&gt;:0:<br>    /usr/local/cuda/include/crt/host_config.h:119:2: error: <em>#error — unsupported GNU version! gcc versions later than 6 are not supported!<br>    #error — unsupported GNU version! gcc versions later than 6 are not supported!<br>    </em>^~~~~<br>    Makefile:203: recipe for target ‘fp16_dev.o’ failed<br>    make: *** [fp16_dev.o] Error 1</pre><p>And now we run into trouble with gcc/++ 7. Now we will need to mitigate this gcc issue. Lets install gcc 6.x and g++ 6.x Then we can create a symlink to tell cuDNN to look for version 6. We can leave version 7 installed as well.</p><pre><strong>$ sudo apt install gcc-6 g++-6</strong><br>    <em># ln -s makes a symbolic link so cuda looks for gcc version 6 where we tell it to look.<br></em><strong>$ sudo ln -s /usr/bin/gcc-6 /usr/local/cuda/bin/gcc<br>$ sudo ln -s /usr/bin/g++-6 /usr/local/cuda/bin/g+</strong>+</pre><p>What exactly is a symbolic link?</p><blockquote>A symbolic link, also termed a soft link, is a special kind of file that points to another file, much like a shortcut in Windows or a Macintosh alias. Unlike a hard link, a symbolic link does not contain the data in the target file. It simply points to another entry somewhere in the file system. This difference gives symbolic links certain qualities that hard links do not have, such as the ability to link to directories, or to files on remote computers networked through NFS. Also, when you delete a target file, symbolic links to that file become unusable, whereas hard links preserve the contents of the file <a href="https://kb.iu.edu/d/abbe">https://kb.iu.edu/d/abbe</a></blockquote><p>Alright, let’s try this test again and make sure gcc6 and g++6 is working as intended.</p><pre><strong>$ make clean &amp;&amp; make</strong><br>    rm -rf *o<br>    rm -rf mnistcuDNN<br>    /usr/local/cuda/bin/nvcc -ccbin g++ -I/usr/local/cuda/include -IFreeImage/include -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_53,code=compute_53 -o fp16_dev.o -c fp16_dev.cu<br>    g++ -I/usr/local/cuda/include -IFreeImage/include -o fp16_emu.o -c fp16_emu.cpp<br>    g++ -I/usr/local/cuda/include -IFreeImage/include -o mnistcuDNN.o -c mnistcuDNN.cpp<br>    /usr/local/cuda/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_53,code=sm_53 -gencode arch=compute_53,code=compute_53 -o mnistcuDNN fp16_dev.o fp16_emu.o mnistcuDNN.o -LFreeImage/lib/linux/x86_64 -LFreeImage/lib/linux -lcudart -lcublas -lcuDNN -lfreeimage -lstdc++ -lm</pre><p>so far so good, and finally, cuDNN has an internal feed forward convolutional network test using the famous MNIST numbers images dataset:</p><pre><strong>$ ./mnistcuDNN</strong><br>    cuDNNGetVersion() : 7005 , cuDNN_VERSION from cuDNN.h : 7005 (7.0.5)<br>    Host compiler version : GCC 6.4.0<br>    There are 1 CUDA capable devices on your machine :<br>    device 0 : sms 15 Capabilities 6.1, SmClock 1784.5 Mhz, MemSize (Mb) 8116, MemClock 4004.0 Mhz, Ecc=0, boardGroupID=0<br>    Using device 0<br>    Testing single precision<br>    Loading image data/one_28x28.pgm<br>    Performing forward propagation …<br>    Testing cuDNNGetConvolutionForwardAlgorithm …<br>    Fastest algorithm is Algo 1<br>    Testing cuDNNFindConvolutionForwardAlgorithm …<br>    ^^^^ cuDNN_STATUS_SUCCESS for Algo 1: 0.027648 time requiring 3464 memory<br><em>#… lots of additional lines ...<br># ... Final few lines should say ...<br></em>Result of classification: 1 3 5<br>Test passed!</pre><p>Awesome! cuDNN is working. Next order of business… you guessed it. Hold these packages from being updated and remove (you can delete the .deb files as well in your Downloads/) the copied samples directory we used for the previous MNIST test:</p><pre><strong>$ sudo apt-mark hold libcuDNN7 libcuDNN7-dev libcuDNN7-doc</strong> <em>#These are the three .deb files we installed<br>    </em>libcuDNN7 set on hold.<br>    libcuDNN7-dev set on hold.<br>    libcuDNN7-doc set on hold.<br><strong>$ rm -r cuDNN_samples_v7/</strong></pre><p>Now we are getting into the home stretch. Time to install our deep learning frameworks. First up is TensorFlow, as it is generally more picky then pytorch.</p><h3><strong>Deep Learning Frameworks</strong></h3><p>First create a new virtual environment with conda. I called it ‘tensorflow’. Below I make a comment about initializing the env with pip and not installing pip after the env has been created. There used to be (might still be) an insidious bug where if you installed pip after you created an env pip installs would install packages globally regardless if you were in an activated env. This is highly undesirable behavior. The solution was to initialize with pip. This bug might be mitigated by now.</p><pre><strong>$ cd<br>$ conda create -n tensorflow python=3.6 pip numpy</strong> <em>#remember to initialize the env with pip here.<br># activate your conda environment<br></em><strong>$ conda source activate tensorflow</strong><br><em># now your user and hostname will be prepended with a (tensorflow) e.g. below<br># keil@yuki-bot:~$<br># (tensorflow) keil@yuki-bot:~$</em></pre><p>Now for TensorFlow. I got the url below from TensorFlow’s <a href="https://www.tensorflow.org/install/install_linux#the_url_of_the_tensorflow_python_package">website</a>. Important to make sure you are installing the package: tensorflow-gpu and NOT tensorflow. Otherwise you won’t be doing much GPU computing…</p><p>I grabbed the python 3.6 GPU support url, found at the bottom of the page. Let’s install it!</p><pre><strong>$ pip install — ignore-installed — upgrade</strong> <a href="https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.8.0-cp36-cp36m-linux_x86_64.whl">https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.8.0-cp36-cp36m-linux_x86_64.whl</a><br><strong>$ conda list | grep tensor</strong> <em>#should show something like the following<br>    </em>tensorboard 1.8.0 &lt;pip&gt;<br>    tensorflow-gpu 1.8.0 &lt;pip&gt; <em>#this should say tensorflow-gpu… not tensorflow</em></pre><p>Now we can test our tensorflow install by starting a python repl in the console and importing the tensorflow library.</p><pre><strong>$ python</strong><br>    Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:5<br>    [GCC 7.2.0] on linux<br>    Type “help”, “copyright”, “credits” or “license” for more information.<br><strong>&gt;&gt;&gt; import tensorflow as tf<br>&gt;&gt;&gt; hello = tf.constant(‘Hello, TensorFlow!’)<br>&gt;&gt;&gt; sess = tf.Session()</strong><em><br># some warning messages and other verbose output...</em> tensorflow/core/common_runtime/gpu/gpu_device.cc:1356] Found device 0 with properties:<br>    name: GeForce GTX 1070 major: 6 minor: 1 memoryClockRate(GHz): 1.7845<br>    pciBusID: 0000:01:00.0<br>    totalMemory: 7.93GiB freeMemory: 7.46GiB<br>    2018–06–18 15:54:49.570548: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1435] Adding visible gpu devices: 0<br>    2018–06–18 15:54:49.763041: I tensorflow/core/common_runtime/gpu/gpu_device.cc:923] Device interconnect StreamExecutor with strength 1 edge matrix:<br>    2018–06–18 15:54:49.763069: I tensorflow/core/common_runtime/gpu/gpu_device.cc:929] 0<br>    2018–06–18 15:54:49.763089: I tensorflow/core/common_runtime/gpu/gpu_device.cc:942] 0: N<br>    2018–06–18 15:54:49.763303: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1053] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 7205 MB memory) -&gt; physical GPU (device: 0, name: GeForce GTX 1070, pci bus id: 0000:01:00.0, compute capability: 6.1)</pre><pre><strong>&gt;&gt;&gt; print(sess.run(hello))</strong><br>    b’Hello, TensorFlow!’<br><strong>&gt;&gt;&gt; exit()</strong></pre><p>Great all looks good. Congratulations, you have TensorFlow installed with GPU support. And you do not need to hold tensorflow with APT, conda is in charge of managing the upgrade for tensorflow.</p><p>now deactivate your tensorflow conda env and create one for pytorch:</p><pre><strong>$ source deactivate tensorflow<br>$ conda create -n pytorch python=3.6 pip numpy<br>$ conda source activate pytorch</strong></pre><p>Head over to the pytorch website and generate a command to install pytorch. The below image shows the options I selected:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YYpNT8kfhy0J58zqrtrHDA.png" /></figure><pre><strong>$ conda install pytorch torchvision cuda90 -c pytorch<br>$ conda list | grep torch</strong><br><em># packages in environment at /home/keil/miniconda3/envs/pytorch:<br>    </em>cuda90 1.0 h6433d27_0 pytorch<br>    pytorch 0.4.0 py36_cuda9.0.176_cuDNN7.1.2_1 [cuda90] pytorch<br>    torchvision 0.2.1 py36_1 pytorch<br><strong>$ python</strong> <em>#start the python interpreter to test pytorch for GPU support<br>    </em>Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56)<br>    [GCC 7.2.0] on linux<br>    Type “help”, “copyright”, “credits” or “license” for more information.</pre><pre><strong>&gt;&gt;&gt; import torch<br>&gt;&gt;&gt; torch.cuda.current_device()</strong><br>    0<br><strong>&gt;&gt;&gt; torch.cuda.device(0)</strong><br>    &lt;torch.cuda.device object at 0x7faff01a8860&gt;<br><strong>&gt;&gt;&gt; torch.cuda.get_device_name(0)</strong><br>    ‘GeForce GTX 1070’<br><strong>&gt;&gt;&gt; exit()<br>$ source deactivate pytorch</strong></pre><p>Awesome! Pytorch is looking good to go.</p><p>Well that is it. You are all done. You have installed tensorflow and pytorch, both with GPU support in their own conda virtual envs. You installed CUDA 9.0, cuDNN 7.0.5, gcc/g++ 6.0, latest official nvidia GPU drivers for Ubuntu, and the latest kernel headers.</p><p>Hopefully all of this worked for you and you learned a few things along the way. The biggest challenge with getting GPU support for deep learning frameworks are making sure all the different versions of everything play nice together. That just requires some research and reading the official docs from Ubuntu, Nvidia, TensorFlow and Pytorch. Other than that it is mostly straightforward copy pasta of commands.</p><p>Useful sites for good quality info I found were StackExchange and especially the Nvidia <a href="https://devtalk.nvidia.com/">developer forms</a>. When reading online forums just make sure the info is up to date. A lot of the answers and questions are old and no longer suitable. I am sure this post will be old soon too. I will try to update it when necessary.</p><p>Thanks for slogging through this post. Have fun deep learning!</p><p>Cheers,</p><p>Kyle</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a54ec2ec907d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/up-and-running-with-ubuntu-nvidia-cuda-cudnn-tensorflow-and-pytorch-a54ec2ec907d">Up and Running with Ubuntu, Nvidia, Cuda, CuDNN, TensorFlow, and Pytorch</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>