Skip to content

Instantly share code, notes, and snippets.

View louis-she's full-sized avatar
🌙
Zzzzzzzzzzz

Chenglu louis-she

🌙
Zzzzzzzzzzz
View GitHub Profile
@louis-she
louis-she / deploy_internlm.sh
Last active September 26, 2023 10:56
一键部署各种 internlm
cd ~
available_models=(internlm/internlm-chat-7b internlm/internlm-chat-7b-8k internlm/internlm-chat-20b lmdeploy/turbomind-internlm-chat-20b-w4)
num_gpus=$(nvidia-smi -L | wc -l)
model_name=$(dirname $1)
found=false
for model in "${available_models[@]}"
do
if [ "$model" == "$1" ]
" if not quite sure any of these options does, just take
" a look at http://vimdoc.sourceforge.net/htmldoc/usr_05.html
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
" base options
set nocompatible " work in an imporvement way
" for vundle
filetype off
" if not quite sure any of these options does, just take
" a look at http://vimdoc.sourceforge.net/htmldoc/usr_05.html
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
" base options
set nocompatible " work in an imporvement way
" for vundle
filetype off
" if not quite sure any of these options does, just take
" a look at http://vimdoc.sourceforge.net/htmldoc/usr_05.html
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
" base options
set nocompatible " work in an imporvement way
" for vundle
filetype off
" if not quite sure any of these options does, just take
" a look at http://vimdoc.sourceforge.net/htmldoc/usr_05.html
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
" base options
set nocompatible " work in an imporvement way
" for vundle
filetype off
const gulp = require('gulp');
const eslint = require('gulp-eslint');
const babel = require('gulp-babel');
gulp.task('lint', function() {
return gulp.src(['!node_modules/**', 'src/**.js', '!Gulpfile.js'])
.pipe(eslint({
extends: 'airbnb',
envs: ['es6', 'node']
}))
<!DOCTYPE html>
<html>
<body>
<h1>My title</h1>
<script src="builds/bundle.js"></script>
</body>
</html>
" if not quite sure any of these options does, just take
" a look at http://vimdoc.sourceforge.net/htmldoc/usr_05.html
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
" base options
set nocompatible " work in an imporvement way
" for vundle
filetype off