<?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 Maria Dobromyslova on Medium]]></title>
        <description><![CDATA[Stories by Maria Dobromyslova on Medium]]></description>
        <link>https://medium.com/@dobromyslova?source=rss-1f71eae3192e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ny5bU0z_Ac2DkXioVOvasQ.png</url>
            <title>Stories by Maria Dobromyslova on Medium</title>
            <link>https://medium.com/@dobromyslova?source=rss-1f71eae3192e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:29:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dobromyslova/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[Profiling Nvidia RTX 3090 with Cyberpunk 2077]]></title>
            <link>https://dobromyslova.medium.com/profiling-nvidia-rtx-3090-with-cyberpunk-2077-a9f5a5101ff8?source=rss-1f71eae3192e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9f5a5101ff8</guid>
            <category><![CDATA[benchmark]]></category>
            <category><![CDATA[ray-tracing]]></category>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[cyberpunk-2077]]></category>
            <category><![CDATA[rtx-3090]]></category>
            <dc:creator><![CDATA[Maria Dobromyslova]]></dc:creator>
            <pubDate>Sat, 19 Dec 2020 02:23:03 GMT</pubDate>
            <atom:updated>2020-12-19T02:23:03.067Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*frKwEKNFfH_6-OWhYaOHQQ.jpeg" /></figure><p>After I made my RTX 3090 card work with <a href="https://dobromyslova.medium.com/making-work-tensorflow-with-nvidia-rtx-3090-on-windows-10-7a38e8e582bf">TensorFlow</a>, I still was not sure if the driver is working as expected.</p><p>I was looking for some heavy load that can test it and thought that the recently released Cyberpunk 2077 could be a good fit for this role.<br>I planned this post as a really short article, so let’s start with the results.<br>The above screenshots are of the in-game engine when rendering with Ray Tracing is On and Off:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DWbZIiMvLjIWF--MOoIHxg.jpeg" /><figcaption>Ray Tracing On</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X1PvyWDMknUuJ6KsL3nbvQ.jpeg" /><figcaption>Ray Tracing Off</figcaption></figure><p>Notice how the biggest difference that we can see here is the lights bounces and the reflections from the different surfaces, where things like textures look more smooth.</p><p>What I also noticed with the Ray Tracing On is that there is a huge difference in the quality of the textures. I’m not exactly sure what causes that, but to be fair it is probably because of this fact, you don’t get any “real” shadows/glow when Ray Tracing is Off. It is not only noticeable because of the light effects you get, it is also noticeable in darker environments because the lighting is very subtle in this particular environment, and the shadows are not as sharp as the shadow that you can see in the day time.</p><p>However, there is one weird thing about Ray Tracing implementation in this game — there are reflections from all the objects from the surrounding, but nothing from the main character.</p><p>Anyway, the maximum FPS that I can get is 70, but the load of the card is not even higher than 16% (with Ray Tracing On), and without — it’s not even 2%:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gde9qytbF0MydV1pS4NtoQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a95Tj8oZZ8ap5ALFQef5SQ.png" /></figure><p>It feels like a software FPS lock, and I can’t find any way to bypass it for now.</p><h3>Conclusions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gwso562_4zbNxOCyRH8NaA.jpeg" /></figure><p>I think that is enough for now, but I will try to do some additional research and find a way to bypass this lock (if it’s even possible), so we can see the top performance of the RTX.</p><p>I will also try to answer any questions that are posted below. So, make sure to follow me on <a href="https://twitter.com/mdobromyslova">Twitter</a> or <a href="https://www.linkedin.com/in/dobromyslova/">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9f5a5101ff8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making work TensorFlow with Nvidia RTX 3090 on Windows 10]]></title>
            <link>https://dobromyslova.medium.com/making-work-tensorflow-with-nvidia-rtx-3090-on-windows-10-7a38e8e582bf?source=rss-1f71eae3192e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a38e8e582bf</guid>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[rtx-3090]]></category>
            <category><![CDATA[windows-10]]></category>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Maria Dobromyslova]]></dc:creator>
            <pubDate>Tue, 10 Nov 2020 07:30:40 GMT</pubDate>
            <atom:updated>2020-11-10T07:30:40.286Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tcS0RtZzPozrJgiG.png" /><figcaption>Nvidia RTX 3090</figcaption></figure><p>I was recently acquired a new Nvidia RTX 3090, and since most of my ML algorithms based on TensorFlow — I have decided to make it work with the latest version.</p><p>If you want to skip the whole testing and installation process and just want to know the version of TF that will work with RTX video card — here is the build configuration comparison table that I tested in the process:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/78e4637122745b9fa7b8d47ab80003b9/href">https://medium.com/media/78e4637122745b9fa7b8d47ab80003b9/href</a></iframe><p>The initial build configurations for TensorFlow 2.3.0 (latest release) were taken from the <a href="https://www.tensorflow.org/install/source_windows#gpu">https://www.tensorflow.org/install/source_windows#gpu</a> page.</p><p>During the installation, there weren’t any error messages. However, after installation, I decided to test it on a small style transfer example. Here is a small and quick code snippet to apply for artistic style transfer with TensorFlow:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/183e56f04f48f7b4458c0e7ebafc44a7/href">https://medium.com/media/183e56f04f48f7b4458c0e7ebafc44a7/href</a></iframe><p>This code based on the <a href="https://tfhub.dev/google/magenta/arbitrary-image-stylization-v1-256/2">https://tfhub.dev/google/magenta/arbitrary-image-stylization-v1-256/2</a> model, and if you want to run it on your machine, here is the images that I used in testing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*ANPUxxFUKHR3inlMBC4VAg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*QiUrUDMZ-2OrhIprpLacww.jpeg" /><figcaption>Content (Left) and Style (Right) images</figcaption></figure><p>After running this code with TensorFlow 2.3.0 fresh installation — I noticed that the first execution time was around 10 minutes. This is because of the compilation of the PTX operations and this is also was noted on the <a href="https://www.tensorflow.org/install/gpu#hardware_requirements">https://www.tensorflow.org/install/gpu#hardware_requirements</a> build page. Also, I increased cache size as it was recommended for set CUDA_CACHE_MAXSIZE=2147483648 and the total cache size after the launch was about 1.2 Gb.</p><p>But there were several problems: the cache wasn’t cleared after the execution, and the resulting image — doesn’t contain much content:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/0*oNETZF32D_nUxBnp.png" /></figure><p>To compare it with the expected results, we need to generate it somehow. Lucky for us, it’s easy to do with CPU. Just add the set CUDA_VISIBLE_DEVICES=-1 flag before executing the code, and you will get results like that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lyY9_vP1sjGZKtQm.png" /></figure><p>As you can see, there is a huge difference between the results. So, I decided to test the second build:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cb390ac09d7709691a09a1781ed2f183/href">https://medium.com/media/cb390ac09d7709691a09a1781ed2f183/href</a></iframe><p>You can install the latest dev version of TensorFlow with the following commands:</p><pre>pip3 install tensorflow-gpu<br>pip3 install tensorflow-hub<br>pip3 install tf-nightly-gpu</pre><p>I added tensorflow-hub because you will need it for the code example provided above.</p><p>Here is how you can validate the installed version:</p><pre>pip3 show tensorflow-gpu<br>pip3 show tf-nightly-gpu</pre><p>The combination of the CUDA toolkit and the cuDNN library was generated by the trial and error process. So, I’m posting only the working together versions.</p><p>After installation and running some more tests — I’m finally getting the expected results.</p><p>But, there was still something slightly off. The execution time was 16 seconds, while on CPU — it was around 8 seconds. You would expect GPU to be faster than CPU or at least on such a small example — at least the same. Additionally, there was a warning message about PTX compilation:</p><pre>[tensorflow/stream_executor/gpu/redzone_allocator.cc:314] Internal: ptxas exited with non-zero error code -1, output:</pre><pre>Relying on driver to perform ptx compilation.<br>Modify $PATH to customize ptxas location.<br>This message will be only logged once.</pre><p>and a lot of:</p><pre>[tensorflow/core/platform/windows/subprocess.cc:308] SubProcess ended with return code: 4294967295</pre><p>I know that path to ptxas is already in $PATH (I double-checked this with echo %PATH%), and after some research, I found that you can enable explicit logging for the PTX compiler. You need to add set TF_CPP_VMODULE=&quot;asm_compiler=3&quot; before running the code.</p><p>So, now I saw a more detailed message:</p><pre>[I tensorflow/stream_executor/gpu/asm_compiler.cc:157] Looking for ptxas.exe at C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.0/bin/ptxas.exe</pre><pre>[I tensorflow/stream_executor/gpu/asm_compiler.cc:166] Using ptxas.exe at C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.0/bin/ptxas.exe</pre><pre>[I tensorflow/stream_executor/gpu/asm_compiler.cc:186] ptx written to: C:\Users\user\AppData\Local\Temp\/tempfile-ALM-68c0-15812-5b3a6f65ff7e3</pre><pre>[I tensorflow/stream_executor/gpu/asm_compiler.cc:215] C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.0/bin/ptxas.exe C:\Users\user\AppData\Local\Temp\/tempfile-ALM-68c0-15812-5b3a6f65ff7e3 -o C:\Use rs\user\AppData\Local\Temp\/tempfile-ALM-68c0-15812-5b3a6f65ffba1 -arch=sm_86 -v</pre><pre>[I tensorflow/core/platform/windows/subprocess.cc:308] SubProcess ended with return code: 4294967295</pre><p>Great! Now we got the command that TensorFlow uses to compile the PTX operations. Did you notice the flag -arch=sm_86? This flag tells the PTX compiler when it needs to use 8.6 compute capability. This is the current one that the Nvidia RTX 3090 uses.</p><p>In case if you can&#39;t find the file that the PTX compiler is trying to compile - here it is:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d01a9d049a72d822d37d1094bfed6e15/href">https://medium.com/media/d01a9d049a72d822d37d1094bfed6e15/href</a></iframe><p>Save it into the C:\Users\user\AppData\Local\Temp\ALM_test file and run the PTX compilation with the following command:</p><pre>cd &quot;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\&quot; &amp;&amp; ptxas.exe C:\Users\user\AppData\Local\Temp\ALM_test -o C:\Users\user\AppData\Local\Temp\ALM_test_output -arch=sm_86 -v </pre><p>And the result is the following error message:</p><pre>ptxas fatal : Value &#39;sm_86&#39; is not defined for option &#39;gpu-name&#39;</pre><p>Having the error message is a good sign this means — we got somewhere! So, this error message is telling us that the sm_86 (8.6 compute capability) is not supported in this version of the PTX compiler.</p><p>I was thinking: where I can find the compiler that can support it?</p><p>The answer is, of course, the latest CUDA versions, and it&#39;s 11.1.1_456.81 for the current moment. But, here is the issue - the latest dev version of TensorFlow uses the 11.0 version of CUDA, so what is the solution? It&#39;s easy - use the 11.0 for the TensorFlow and copy the ptxas.exe from the 11.1 version. To do this just copy C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin\ptxas.exe into C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\ptxas.exe. You can move or rename the 11.0 one before copying the 11.1.</p><p>Okay, let’s run our compilation once again with the new ptxas:</p><pre>cd &quot;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\&quot; &amp;&amp; ptxas.exe C:\Users\user\AppData\Local\Temp\ALM_test -o C:\Users\user\AppData\Local\Temp\ALM_test_output -arch=sm_86 -v</pre><pre>ptxas info : 0 bytes gmem<br>ptxas info : Compiling entry function &#39;redzone_checker&#39; for &#39;sm_86&#39;<br>ptxas info : Function properties for redzone_checker<br>    0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads<br>ptxas info : Used 8 registers, 384 bytes cmem[0]</pre><p>And it looks like it works! Now, after running the example of the style transfer — there are no warning messages regarding PTX, and also execution time is now down to 8 seconds — as expected! Also, the cache is clear now, which is also indicates success.</p><p>After running TensorFlow on more advanced examples, I found that execution time with PTX warnings is about 2 hours, and by fixing the compilation — it’s now down to 20 minutes. It’s around 2/3 optimization, and I’m very happy with the results.</p><h4>Conclusions</h4><p>I think this issue will be gone in the future releases of TensorFlow because I think the RTX 30 series is simply way too new to expect the native support from TensorFlow already.</p><p>And I hope this hotfix will work for you as well.</p><p>Let me know if this was helpful or if you have any additional questions. Feel free to reach me on <a href="https://twitter.com/mdobromyslova">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a38e8e582bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hyper-scale images generated on the Cloud computing environment]]></title>
            <link>https://dobromyslova.medium.com/hyper-scale-images-generated-on-the-cloud-computing-environment-b3869b866777?source=rss-1f71eae3192e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3869b866777</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[art]]></category>
            <dc:creator><![CDATA[Maria Dobromyslova]]></dc:creator>
            <pubDate>Tue, 28 Jul 2020 14:01:01 GMT</pubDate>
            <atom:updated>2020-07-31T23:32:34.656Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_7vFEVz7yzhDY2z8lrCZ6Q.jpeg" /><figcaption>Image by Oshidori LLC</figcaption></figure><p>Today I would like to talk about the beautiful illustrations crafted with Machine learning. Probably the closest date of Machine learning origin is 1950, but in the computer vision field, it was pioneered in the 1980s. Its main goal was to automatically identify objects in images. However, today’s computer vision field is more about understanding the underlying algorithms and using that to predict the state of a computer application.</p><p>Machine learning has shown itself to be an immensely powerful tool for almost any application, particularly when applied to image recognition. It does this using a set of different, specialized Neural Networks that can learn to recognize features from images. The algorithms used to train such models are more complex than the most simple Neural Networks that you can think of. They require a large collection of different features for each image — the features that can be used to differentiate the objects from their background. Each of these different features can make the final model extremely flexible.<br>The first Neural Networks to have this quality of being able to learn such complicated models were based on the Long Short-Term Memory (LSTM). In these type of models, a very simple set of feature detectors are used as a basis for the network. They allow the data to be fed back into the system, so those features can be added in and taken out to keep the model from becoming very specialized. However, this method is not very flexible, because what you have as a base is not all that flexible. It is extremely specific and does not allow for the possibility of the data to change along the way.</p><p>The Deep Neural Network (DNN) was developed to solve this problem. The concept itself is very simple: a network starts from some input and learns the model of the picture by iteratively adding more instances along the way till it gets enough of that data in the input. Then, the model is modified and passed along to the next iteration.</p><p>One of the particularly interesting uses of such DNN is the Neural Style Transfer (NST) algorithm. It can transform digital images in are such a way that simulates the appearance or visual style of another image. Popular applications for NST are the production of artificial artwork from photography images. Let’s look for the example provided below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ULspF6QpwwLPW7n2TQuewg.jpeg" /><figcaption>Photography image original</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*R41S8mDf4CK2V7MCojkhRw.jpeg" /><figcaption>Photography image after NST</figcaption></figure><p>The first image is the original photography image made on regular DSLR Camera and the second image — is the image generated with the NST algorithm.</p><p>NST process is difficult because of the small size and low spectral representation of the image. It is a process of organizing information based on many patterns corresponding to the weakening: a large number of inputs, consistency in prioritizing the assets, certainty to calculate the output of the sampling, chance to subdivide the collection of pixels, the approximate size of an insight area, etc.</p><p>To optimize and make this process even possible for the hyper-scale images, this type of DNN model produced on the multi-GPU clustered computing environment, also known as the Cloud environment. The Cloud environment implements autoprocessing client-server architecture, which is capable of changing its characteristic attributes in an unannounced way and can be executed on an on-demand basis. Here is an example of the same photography image produced on Amazon SageMaker Cloud environment:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dZS96DDc9G9HA18MvvFToQ.jpeg" /><figcaption>Cloud computed image produced with NST</figcaption></figure><p><strong>Note:</strong> You can see more examples of the Cloud computed images in the magazine created with the advanced NST algorithms: <a href="https://www.amazon.com/dp/B08BJGJVM9">https://www.amazon.com/dp/B08BJGJVM9</a></p><p>Summing up, we can say that a multi-GPU clustered computing environment is capable of producing highly scaled images and has a remarkable effect on the future of DNN training and applications.</p><p><strong>P.S. </strong>This article was written with the help of GPT-2 model.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3869b866777" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>