Commit 
							
							·
						
						9c340c3
	
1
								Parent(s):
							
							cfade65
								
Upload pt.sh with huggingface_hub
Browse files
    	
        pt.sh
    ADDED
    
    | @@ -0,0 +1,24 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            echo "" >> ~/.bashrc
         | 
| 2 | 
            +
            echo "# * Peitian's Alias Start"  >> ~/.bashrc
         | 
| 3 | 
            +
            echo "alias pigcha='sudo /data/peitian/Apps/pigchacli'" >> ~/.bashrc
         | 
| 4 | 
            +
            echo "alias prox='export https_proxy=http://127.0.0.1:15777 http_proxy=http://127.0.0.1:15777; git config --global https.proxy http://127.0.0.1:15777; git config --global http.proxy http://127.0.0.1:15777'" >> ~/.bashrc
         | 
| 5 | 
            +
            echo "alias unprox='unset https_proxy http_proxy'" >> ~/.bashrc
         | 
| 6 | 
            +
            echo "alias pts='screen -r -d pt'" >> ~/.bashrc
         | 
| 7 | 
            +
            echo "pta () {
         | 
| 8 | 
            +
                conda activate /data/peitian/Envs/\$1
         | 
| 9 | 
            +
            }" >> ~/.bashrc
         | 
| 10 | 
            +
            echo "pte () {
         | 
| 11 | 
            +
                export WANDB_API_KEY='b1ed32a492657af4a611f981a15cbf1ef1b735f8'
         | 
| 12 | 
            +
                export JAVA_HOME='/data/peitian/Apps/jdk-11.0.2'
         | 
| 13 | 
            +
                export PATH=\$JAVA_HOME/bin:\$PATH
         | 
| 14 | 
            +
                export OPENAI_API_KEY='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'
         | 
| 15 | 
            +
                if [[ \$1 ]]
         | 
| 16 | 
            +
                then
         | 
| 17 | 
            +
                    export CUDA_VISIBLE_DEVICES=\$1
         | 
| 18 | 
            +
                else
         | 
| 19 | 
            +
                    unset CUDA_VISIBLE_DEVICES
         | 
| 20 | 
            +
                fi
         | 
| 21 | 
            +
            }" >> ~/.bashrc
         | 
| 22 | 
            +
            echo "# * Peitian's Alias End"  >> ~/.bashrc
         | 
| 23 | 
            +
            conda init
         | 
| 24 | 
            +
            source ~/.bashrc
         |