Can i run a google colab (free edition) script and then shutdown my computer?2019 Community Moderator ElectionWhat's the hardware spec for Google Colaboratory?How can you profile a Python script?Is there a portable way to get the current username in Python?How do I check what version of Python is running my script?How to run google colab from terminal?Is it possible to upload 30gb of data to Google Colab as the limit of drive is 15gb?Python script runs slower on google compute instance as compared with colaboratorytensorflow object detection in google colabTensorflow Runs on GPU on home PC but not on Google colabHow can I stop a particular cell from running in google colab?Memory usage is close to the limit in Google Colab

I got the following comment from a reputed math journal. What does it mean?

Homology of the fiber

Jem'Hadar, something strange about their life expectancy

When did hardware antialiasing start being available?

Writing in a Christian voice

Emojional cryptic crossword

10 year ban after applying for a UK student visa

Weird lines in Microsoft Word

Output visual diagram of picture

Can other pieces capture a threatening piece and prevent a checkmate?

Fair way to split coins

Why I don't get the wanted width of tcbox?

How to determine the greatest d orbital splitting?

How can a new country break out from a developed country without war?

Would mining huge amounts of resources on the Moon change its orbit?

Unfrosted light bulb

How are passwords stolen from companies if they only store hashes?

How to understand 「僕は誰より彼女が好きなんだ。」

Pre-Employment Background Check With Consent For Future Checks

How to balance a monster modification (zombie)?

Should a narrator ever describe things based on a characters view instead of fact?

CLI: Get information Ubuntu releases

Friend wants my recommendation but I don't want to

What (if any) is the reason to buy in small local stores?



Can i run a google colab (free edition) script and then shutdown my computer?



2019 Community Moderator ElectionWhat's the hardware spec for Google Colaboratory?How can you profile a Python script?Is there a portable way to get the current username in Python?How do I check what version of Python is running my script?How to run google colab from terminal?Is it possible to upload 30gb of data to Google Colab as the limit of drive is 15gb?Python script runs slower on google compute instance as compared with colaboratorytensorflow object detection in google colabTensorflow Runs on GPU on home PC but not on Google colabHow can I stop a particular cell from running in google colab?Memory usage is close to the limit in Google Colab










2















Can i run a google colab (free edition) script and then shutdown my computer?



I am training several deeplearning models with crossvalidation, and therefore i would like to know if i can close the window or the computer with the training running at the same time in the cloud.










share|improve this question
























  • Maybe this is something you are looking for unix.stackexchange.com/questions/4442/… Do you want to send some message to your PC from google-colab machine?

    – Konrad Sitarz
    Mar 7 at 19:05












  • Thank you for answering, but this is not what i am looking for.

    – S.MC.
    Mar 7 at 20:42















2















Can i run a google colab (free edition) script and then shutdown my computer?



I am training several deeplearning models with crossvalidation, and therefore i would like to know if i can close the window or the computer with the training running at the same time in the cloud.










share|improve this question
























  • Maybe this is something you are looking for unix.stackexchange.com/questions/4442/… Do you want to send some message to your PC from google-colab machine?

    – Konrad Sitarz
    Mar 7 at 19:05












  • Thank you for answering, but this is not what i am looking for.

    – S.MC.
    Mar 7 at 20:42













2












2








2


1






Can i run a google colab (free edition) script and then shutdown my computer?



I am training several deeplearning models with crossvalidation, and therefore i would like to know if i can close the window or the computer with the training running at the same time in the cloud.










share|improve this question
















Can i run a google colab (free edition) script and then shutdown my computer?



I am training several deeplearning models with crossvalidation, and therefore i would like to know if i can close the window or the computer with the training running at the same time in the cloud.







python google-colaboratory






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 9 at 0:53









desertnaut

19.7k74177




19.7k74177










asked Mar 7 at 18:58









S.MC.S.MC.

625




625












  • Maybe this is something you are looking for unix.stackexchange.com/questions/4442/… Do you want to send some message to your PC from google-colab machine?

    – Konrad Sitarz
    Mar 7 at 19:05












  • Thank you for answering, but this is not what i am looking for.

    – S.MC.
    Mar 7 at 20:42

















  • Maybe this is something you are looking for unix.stackexchange.com/questions/4442/… Do you want to send some message to your PC from google-colab machine?

    – Konrad Sitarz
    Mar 7 at 19:05












  • Thank you for answering, but this is not what i am looking for.

    – S.MC.
    Mar 7 at 20:42
















Maybe this is something you are looking for unix.stackexchange.com/questions/4442/… Do you want to send some message to your PC from google-colab machine?

– Konrad Sitarz
Mar 7 at 19:05






Maybe this is something you are looking for unix.stackexchange.com/questions/4442/… Do you want to send some message to your PC from google-colab machine?

– Konrad Sitarz
Mar 7 at 19:05














Thank you for answering, but this is not what i am looking for.

– S.MC.
Mar 7 at 20:42





Thank you for answering, but this is not what i am looking for.

– S.MC.
Mar 7 at 20:42












1 Answer
1






active

oldest

votes


















1















Edited: With the browser closed, a Colabs instance will run for at most 12 hours 90 minutes before your runtime is considered idle and is recycled.




At the same time, it would be good practice to save your model weights periodically to avoid losing work.




Details:



There are no official references for 'Idle' and 'Maximum Lifetime' durations, but testing done by Korakot Chaovavanich shows that:



  • The 'maximum lifetime' of a running notebook is 12 hours (browser open)

  • An 'Idle' notebook instance cuts-off after 90 minutes

  • You can have a maximum of 2 notebooks running concurrently

  • If you close the notebook window and open it while the instance is still running, the cell outputs and variables will still persist. However if the notebook instance has been recycled, your cell outputs and variables will no longer be available.

A sneaky workaround you can try is to have the Colabs instance open in your mobile browser in order to prevent the instance from being considered "Idle".




Your own milage will vary as from personal experience I sometimes get slighty shorter durations. But as long as you checkpoint your models (periodically save the training weights), you should be able to get a substantial amount of training done before the VM is recycled, after which you could simply load the weights into the model on a new VM instance and resume training.



If you'd like to train your model for more than 12 hours at a single go however, you can run Google Colaboratory on a local instance or a standard Jupyter Notebook. But you would forego the free GPU/TPU that Colaboratory provides. (Checkpointing would still be a good idea here!)




Relevant questions from the Google Colaboratory FAQ:




Where is my code executed? What happens to my execution state if I close the browser window?



Code is executed in a virtual machine dedicated to your account. Virtual machines are recycled when idle for a while, and have a maximum lifetime enforced by the system.



How may I use GPUs and why are they sometimes unavailable?



Colaboratory is intended for interactive use. Long-running background
computations, particularly on GPUs, may be stopped. Please do not use
Colaboratory for cryptocurrency mining. Doing so is unsupported and
may result in service unavailability. We encourage users who wish to
run continuous or long-running computations through Colaboratory’s UI
to use a local runtime.







share|improve this answer
























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55050988%2fcan-i-run-a-google-colab-free-edition-script-and-then-shutdown-my-computer%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1















    Edited: With the browser closed, a Colabs instance will run for at most 12 hours 90 minutes before your runtime is considered idle and is recycled.




    At the same time, it would be good practice to save your model weights periodically to avoid losing work.




    Details:



    There are no official references for 'Idle' and 'Maximum Lifetime' durations, but testing done by Korakot Chaovavanich shows that:



    • The 'maximum lifetime' of a running notebook is 12 hours (browser open)

    • An 'Idle' notebook instance cuts-off after 90 minutes

    • You can have a maximum of 2 notebooks running concurrently

    • If you close the notebook window and open it while the instance is still running, the cell outputs and variables will still persist. However if the notebook instance has been recycled, your cell outputs and variables will no longer be available.

    A sneaky workaround you can try is to have the Colabs instance open in your mobile browser in order to prevent the instance from being considered "Idle".




    Your own milage will vary as from personal experience I sometimes get slighty shorter durations. But as long as you checkpoint your models (periodically save the training weights), you should be able to get a substantial amount of training done before the VM is recycled, after which you could simply load the weights into the model on a new VM instance and resume training.



    If you'd like to train your model for more than 12 hours at a single go however, you can run Google Colaboratory on a local instance or a standard Jupyter Notebook. But you would forego the free GPU/TPU that Colaboratory provides. (Checkpointing would still be a good idea here!)




    Relevant questions from the Google Colaboratory FAQ:




    Where is my code executed? What happens to my execution state if I close the browser window?



    Code is executed in a virtual machine dedicated to your account. Virtual machines are recycled when idle for a while, and have a maximum lifetime enforced by the system.



    How may I use GPUs and why are they sometimes unavailable?



    Colaboratory is intended for interactive use. Long-running background
    computations, particularly on GPUs, may be stopped. Please do not use
    Colaboratory for cryptocurrency mining. Doing so is unsupported and
    may result in service unavailability. We encourage users who wish to
    run continuous or long-running computations through Colaboratory’s UI
    to use a local runtime.







    share|improve this answer





























      1















      Edited: With the browser closed, a Colabs instance will run for at most 12 hours 90 minutes before your runtime is considered idle and is recycled.




      At the same time, it would be good practice to save your model weights periodically to avoid losing work.




      Details:



      There are no official references for 'Idle' and 'Maximum Lifetime' durations, but testing done by Korakot Chaovavanich shows that:



      • The 'maximum lifetime' of a running notebook is 12 hours (browser open)

      • An 'Idle' notebook instance cuts-off after 90 minutes

      • You can have a maximum of 2 notebooks running concurrently

      • If you close the notebook window and open it while the instance is still running, the cell outputs and variables will still persist. However if the notebook instance has been recycled, your cell outputs and variables will no longer be available.

      A sneaky workaround you can try is to have the Colabs instance open in your mobile browser in order to prevent the instance from being considered "Idle".




      Your own milage will vary as from personal experience I sometimes get slighty shorter durations. But as long as you checkpoint your models (periodically save the training weights), you should be able to get a substantial amount of training done before the VM is recycled, after which you could simply load the weights into the model on a new VM instance and resume training.



      If you'd like to train your model for more than 12 hours at a single go however, you can run Google Colaboratory on a local instance or a standard Jupyter Notebook. But you would forego the free GPU/TPU that Colaboratory provides. (Checkpointing would still be a good idea here!)




      Relevant questions from the Google Colaboratory FAQ:




      Where is my code executed? What happens to my execution state if I close the browser window?



      Code is executed in a virtual machine dedicated to your account. Virtual machines are recycled when idle for a while, and have a maximum lifetime enforced by the system.



      How may I use GPUs and why are they sometimes unavailable?



      Colaboratory is intended for interactive use. Long-running background
      computations, particularly on GPUs, may be stopped. Please do not use
      Colaboratory for cryptocurrency mining. Doing so is unsupported and
      may result in service unavailability. We encourage users who wish to
      run continuous or long-running computations through Colaboratory’s UI
      to use a local runtime.







      share|improve this answer



























        1












        1








        1








        Edited: With the browser closed, a Colabs instance will run for at most 12 hours 90 minutes before your runtime is considered idle and is recycled.




        At the same time, it would be good practice to save your model weights periodically to avoid losing work.




        Details:



        There are no official references for 'Idle' and 'Maximum Lifetime' durations, but testing done by Korakot Chaovavanich shows that:



        • The 'maximum lifetime' of a running notebook is 12 hours (browser open)

        • An 'Idle' notebook instance cuts-off after 90 minutes

        • You can have a maximum of 2 notebooks running concurrently

        • If you close the notebook window and open it while the instance is still running, the cell outputs and variables will still persist. However if the notebook instance has been recycled, your cell outputs and variables will no longer be available.

        A sneaky workaround you can try is to have the Colabs instance open in your mobile browser in order to prevent the instance from being considered "Idle".




        Your own milage will vary as from personal experience I sometimes get slighty shorter durations. But as long as you checkpoint your models (periodically save the training weights), you should be able to get a substantial amount of training done before the VM is recycled, after which you could simply load the weights into the model on a new VM instance and resume training.



        If you'd like to train your model for more than 12 hours at a single go however, you can run Google Colaboratory on a local instance or a standard Jupyter Notebook. But you would forego the free GPU/TPU that Colaboratory provides. (Checkpointing would still be a good idea here!)




        Relevant questions from the Google Colaboratory FAQ:




        Where is my code executed? What happens to my execution state if I close the browser window?



        Code is executed in a virtual machine dedicated to your account. Virtual machines are recycled when idle for a while, and have a maximum lifetime enforced by the system.



        How may I use GPUs and why are they sometimes unavailable?



        Colaboratory is intended for interactive use. Long-running background
        computations, particularly on GPUs, may be stopped. Please do not use
        Colaboratory for cryptocurrency mining. Doing so is unsupported and
        may result in service unavailability. We encourage users who wish to
        run continuous or long-running computations through Colaboratory’s UI
        to use a local runtime.







        share|improve this answer
















        Edited: With the browser closed, a Colabs instance will run for at most 12 hours 90 minutes before your runtime is considered idle and is recycled.




        At the same time, it would be good practice to save your model weights periodically to avoid losing work.




        Details:



        There are no official references for 'Idle' and 'Maximum Lifetime' durations, but testing done by Korakot Chaovavanich shows that:



        • The 'maximum lifetime' of a running notebook is 12 hours (browser open)

        • An 'Idle' notebook instance cuts-off after 90 minutes

        • You can have a maximum of 2 notebooks running concurrently

        • If you close the notebook window and open it while the instance is still running, the cell outputs and variables will still persist. However if the notebook instance has been recycled, your cell outputs and variables will no longer be available.

        A sneaky workaround you can try is to have the Colabs instance open in your mobile browser in order to prevent the instance from being considered "Idle".




        Your own milage will vary as from personal experience I sometimes get slighty shorter durations. But as long as you checkpoint your models (periodically save the training weights), you should be able to get a substantial amount of training done before the VM is recycled, after which you could simply load the weights into the model on a new VM instance and resume training.



        If you'd like to train your model for more than 12 hours at a single go however, you can run Google Colaboratory on a local instance or a standard Jupyter Notebook. But you would forego the free GPU/TPU that Colaboratory provides. (Checkpointing would still be a good idea here!)




        Relevant questions from the Google Colaboratory FAQ:




        Where is my code executed? What happens to my execution state if I close the browser window?



        Code is executed in a virtual machine dedicated to your account. Virtual machines are recycled when idle for a while, and have a maximum lifetime enforced by the system.



        How may I use GPUs and why are they sometimes unavailable?



        Colaboratory is intended for interactive use. Long-running background
        computations, particularly on GPUs, may be stopped. Please do not use
        Colaboratory for cryptocurrency mining. Doing so is unsupported and
        may result in service unavailability. We encourage users who wish to
        run continuous or long-running computations through Colaboratory’s UI
        to use a local runtime.








        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 12 at 3:06

























        answered Mar 9 at 1:49









        MoltenMuffinsMoltenMuffins

        10519




        10519





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55050988%2fcan-i-run-a-google-colab-free-edition-script-and-then-shutdown-my-computer%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

            2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

            Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme