mobadara commited on
Commit
f288f1b
·
1 Parent(s): 86a3638

Created using Colab

Browse files
notebooks/01_model_training_and_fine_tuning.ipynb CHANGED
@@ -5,7 +5,7 @@
5
  "colab": {
6
  "provenance": [],
7
  "gpuType": "T4",
8
- "authorship_tag": "ABX9TyOnEuzqYzxulPO+99bBQJml",
9
  "include_colab_link": true
10
  },
11
  "kernelspec": {
@@ -51,18 +51,18 @@
51
  "metadata": {
52
  "id": "OwBert5NpQwF"
53
  },
54
- "execution_count": null,
55
  "outputs": []
56
  },
57
  {
58
  "cell_type": "code",
59
- "execution_count": null,
60
  "metadata": {
61
  "colab": {
62
  "base_uri": "https://localhost:8080/"
63
  },
64
  "id": "IGGkAlCRNlro",
65
- "outputId": "69681eec-4dca-43fc-f0c3-489d8d514d71"
66
  },
67
  "outputs": [
68
  {
@@ -75,6 +75,10 @@
75
  }
76
  ],
77
  "source": [
 
 
 
 
78
  "import torch\n",
79
  "import torch.nn as nn\n",
80
  "import torch.optim as optim\n",
@@ -708,10 +712,22 @@
708
  "print(\"✅ Token securely loaded into environment!\")"
709
  ],
710
  "metadata": {
711
- "id": "Uq2QnjXJZr_g"
 
 
 
 
712
  },
713
- "execution_count": null,
714
- "outputs": []
 
 
 
 
 
 
 
 
715
  },
716
  {
717
  "cell_type": "code",
@@ -742,10 +758,79 @@
742
  "echo \"✅ Successfully created GitHub Release and uploaded weights!\""
743
  ],
744
  "metadata": {
745
- "id": "o4_40DdsZhIb"
 
 
 
 
746
  },
747
- "execution_count": null,
748
- "outputs": []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
749
  },
750
  {
751
  "cell_type": "markdown",
 
5
  "colab": {
6
  "provenance": [],
7
  "gpuType": "T4",
8
+ "authorship_tag": "ABX9TyMWASc8DOLZJMwr1QxrDytO",
9
  "include_colab_link": true
10
  },
11
  "kernelspec": {
 
51
  "metadata": {
52
  "id": "OwBert5NpQwF"
53
  },
54
+ "execution_count": 4,
55
  "outputs": []
56
  },
57
  {
58
  "cell_type": "code",
59
+ "execution_count": 5,
60
  "metadata": {
61
  "colab": {
62
  "base_uri": "https://localhost:8080/"
63
  },
64
  "id": "IGGkAlCRNlro",
65
+ "outputId": "36c9affa-0817-480a-9288-d20c8417c022"
66
  },
67
  "outputs": [
68
  {
 
75
  }
76
  ],
77
  "source": [
78
+ "try:\n",
79
+ " from google.colab import userdata\n",
80
+ "except Exception as e:\n",
81
+ " print('Not in Colab Environment')\n",
82
  "import torch\n",
83
  "import torch.nn as nn\n",
84
  "import torch.optim as optim\n",
 
712
  "print(\"✅ Token securely loaded into environment!\")"
713
  ],
714
  "metadata": {
715
+ "colab": {
716
+ "base_uri": "https://localhost:8080/"
717
+ },
718
+ "id": "Uq2QnjXJZr_g",
719
+ "outputId": "12eda826-b10a-4f47-b131-2f1fab2061b7"
720
  },
721
+ "execution_count": 6,
722
+ "outputs": [
723
+ {
724
+ "output_type": "stream",
725
+ "name": "stdout",
726
+ "text": [
727
+ "✅ Token securely loaded into environment!\n"
728
+ ]
729
+ }
730
+ ]
731
  },
732
  {
733
  "cell_type": "code",
 
758
  "echo \"✅ Successfully created GitHub Release and uploaded weights!\""
759
  ],
760
  "metadata": {
761
+ "colab": {
762
+ "base_uri": "https://localhost:8080/"
763
+ },
764
+ "id": "o4_40DdsZhIb",
765
+ "outputId": "85d533b0-9d70-4c3c-8c02-dd238a30caf5"
766
  },
767
+ "execution_count": 7,
768
+ "outputs": [
769
+ {
770
+ "output_type": "stream",
771
+ "name": "stdout",
772
+ "text": [
773
+ "Hit:1 https://cli.github.com/packages stable InRelease\n",
774
+ "Hit:2 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease\n",
775
+ "Hit:3 http://archive.ubuntu.com/ubuntu jammy InRelease\n",
776
+ "Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease\n",
777
+ "Hit:5 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 InRelease\n",
778
+ "Hit:6 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\n",
779
+ "Hit:7 https://r2u.stat.illinois.edu/ubuntu jammy InRelease\n",
780
+ "Hit:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\n",
781
+ "Hit:9 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease\n",
782
+ "Hit:10 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy InRelease\n",
783
+ "Hit:11 https://ppa.launchpadcontent.net/ubuntugis/ppa/ubuntu jammy InRelease\n",
784
+ "Reading package lists...\n",
785
+ "Building dependency tree...\n",
786
+ "Reading state information...\n",
787
+ "57 packages can be upgraded. Run 'apt list --upgradable' to see them.\n",
788
+ "Reading package lists...\n",
789
+ "Building dependency tree...\n",
790
+ "Reading state information...\n",
791
+ "The following packages will be upgraded:\n",
792
+ " gh\n",
793
+ "1 upgraded, 0 newly installed, 0 to remove and 56 not upgraded.\n",
794
+ "Need to get 14.4 MB of archives.\n",
795
+ "After this operation, 94.2 kB of additional disk space will be used.\n",
796
+ "Get:1 https://cli.github.com/packages stable/main amd64 gh amd64 2.93.0 [14.4 MB]\n",
797
+ "Fetched 14.4 MB in 0s (45.7 MB/s)\n",
798
+ "(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 122402 files and directories currently installed.)\r\n",
799
+ "Preparing to unpack .../archives/gh_2.93.0_amd64.deb ...\r\n",
800
+ "Unpacking gh (2.93.0) over (2.92.0) ...\r\n",
801
+ "Setting up gh (2.93.0) ...\r\n",
802
+ "Processing triggers for man-db (2.10.2-1) ...\r\n",
803
+ "Creating GitHub Release v1.0.0...\n",
804
+ "https://github.com/mobadara/precision-diagnostics-xai/releases/tag/v1.0.0\n",
805
+ "✅ Successfully created GitHub Release and uploaded weights!\n"
806
+ ]
807
+ },
808
+ {
809
+ "output_type": "stream",
810
+ "name": "stderr",
811
+ "text": [
812
+ "8+1 records in\n",
813
+ "8+1 records out\n",
814
+ "4528 bytes (4.5 kB, 4.4 KiB) copied, 0.0791345 s, 57.2 kB/s\n",
815
+ "\n",
816
+ "WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n",
817
+ "\n",
818
+ "W: Skipping acquire of configured file 'main/source/Sources' as repository 'https://r2u.stat.illinois.edu/ubuntu jammy InRelease' does not seem to provide it (sources.list entry misspelt?)\n",
819
+ "\n",
820
+ "WARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n",
821
+ "\n",
822
+ "debconf: unable to initialize frontend: Dialog\n",
823
+ "debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78, <> line 1.)\n",
824
+ "debconf: falling back to frontend: Readline\n",
825
+ "debconf: unable to initialize frontend: Readline\n",
826
+ "debconf: (This frontend requires a controlling tty.)\n",
827
+ "debconf: falling back to frontend: Teletype\n",
828
+ "dpkg-preconfigure: unable to re-open stdin: \n",
829
+ "The value of the GITHUB_TOKEN environment variable is being used for authentication.\n",
830
+ "To have GitHub CLI store credentials instead, first clear the value from the environment.\n"
831
+ ]
832
+ }
833
+ ]
834
  },
835
  {
836
  "cell_type": "markdown",