Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
m0_72724954 committed Aug 30, 2024
1 parent 923691c commit c4b3e56
Showing 1 changed file with 3 additions and 81 deletions.
84 changes: 3 additions & 81 deletions AAVT.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,71 +67,6 @@
"cd /content/Chenyme-AAVT"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "uhuDsKvCQhAv"
},
"source": [
"## (推荐)安装cuda11.8"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "lZtIZDoseNU3"
},
"outputs": [],
"source": [
"!nvcc --version"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "kR6bZn94nVa1"
},
"outputs": [],
"source": [
"!lsb_release -a"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "HmN11MMmdUUk"
},
"outputs": [],
"source": [
"#卸载当前cuda\n",
"!apt-get --purge remove cuda nvidia* libnvidia-*\n",
"!dpkg -l | grep cuda- | awk '{print $2}' | xargs -n1 dpkg --purge\n",
"!apt-get remove cuda-*\n",
"!apt autoremove\n",
"!apt-get update"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "sMXjXJqlBPsl"
},
"outputs": [],
"source": [
"#安装cuda11.8\n",
"!wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin\n",
"!sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600\n",
"!wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-repo-ubuntu2204-11-8-local_11.8.0-520.61.05-1_amd64.deb\n",
"!sudo dpkg -i cuda-repo-ubuntu2204-11-8-local_11.8.0-520.61.05-1_amd64.deb\n",
"!sudo cp /var/cuda-repo-ubuntu2204-11-8-local/cuda-*-keyring.gpg /usr/share/keyrings/\n",
"!sudo apt-get update\n",
"!sudo apt-get -y install **cuda-11-8**"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand All @@ -149,6 +84,7 @@
},
"outputs": [],
"source": [
"!pip install pandas==2.1.4 --no-deps\n",
"!pip install -r requirements.txt"
]
},
Expand All @@ -158,16 +94,9 @@
"id": "XRNg2wcMPpzF"
},
"source": [
"## 安装Python"
"## 安装Python虚拟环境"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "dtWOofstPrl0"
},
"source": []
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -227,13 +156,6 @@
"#!wget https://hf-mirror.com/Systran/faster-whisper-large-v3/resolve/main/vocabulary.json\n"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "q25oIY6GRZyY"
},
"source": []
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -304,7 +226,7 @@
},
"outputs": [],
"source": [
"!streamlit run Chenyme-AAVT.py & npx localtunnel --port 8501"
"!streamlit run Chenyme-AAVT.py & npx localtunnel --port 8501 -y"
]
}
],
Expand Down

0 comments on commit c4b3e56

Please sign in to comment.