This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] | |
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<h1>My title</h1> | |
<script src="builds/bundle.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |