Git Product home page Git Product logo

dekunzhang / tensorflow-conda-env Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 146 KB

A series of scripts to easily manage tensorflow GPU conda environments

License: GNU General Public License v3.0

Shell 0.83% Python 99.17%
anaconda anaconda-environment colab colab-notebook colab-notebooks conda conda-environment cuda cuda-toolkit cudnn jupyter jupyter-notebook jupyter-notebooks miniconda miniconda-environments tensorflow tensorflow2 ubuntu ubuntu2204 ubuntu2204lts

tensorflow-conda-env's Introduction

TensorFlow GPU conda enviornment creation scripts

Requirements

Install your Nvidia graphics card driver and Anaconda/Miniconda.

Disclaimer

I am not able to guarantee the functionality of the scripts in the future or other distributions. They work well in my Linux Distro (Ubuntu 22.04 LTS) with driver version 525.60.11. My current Anaconda version is conda 22.11.1, and TensorFlow version is 2.11.0.

What they do

They can give you a conda environment with only jupyter and tensorflow installed. If you like, you can also use Google Colab to connect your local jupyter notebook.

Usage

Clone the repo and execute the init-conda-tf.sh

git clone https://github.com/DekunZhang/tensorflow-conda-env.git
cd tensorflow-conda-env

For the first time, you should execute the init-conda-tf.sh

bash init-conda-tf.sh

It will create conda environment naming tf-server as a base environment for spending less time in future environment creation.

Future use

After execute the first script, you can use the following command to create a new environment.

bash conda-env-tf-clone.sh <env-name>

For example

bash conda-env-tf-clone.sh training-test

It will create a new environment naming training-test and do all other things for you, but only with jupyter and tensorflow installed.

After running the scripts

NOTE: PLEASE CLOSE ALL TERMINALS AFTER RUNNING THE SCRIPTS!

Then run this to activate the environment

conda activate <env-name>

Jupyter Notebook default configuration

For my own convenience, I have set the following options as default configuration

c.NotebookApp.allow_origin = '*'
c.NotebookApp.disable_check_xsrf = True
c.NotebookApp.open_browser = False
c.NotebookApp.token = 'tf-server-token'

You can change them later in ~/.jupyter/jupyter_notebook_config.py

tensorflow-conda-env's People

Contributors

dekunzhang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

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

  • Vue.js photo Vue.js

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

  • Typescript photo Typescript

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

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

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

  • web

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

  • server

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

  • Machine learning

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

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

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

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.