- Enable large files
Verify?Install?git lfs version
Enablinggit lfs install
huggingface-cli lfs-enable-largefiles .
- Copy file(s)
docker cp b4a34cd339de://app/saves/Llama-7B/lora/train_2024-11-16-12-13-34/training_loss.png D:\
- show container
docker ps -a
- building and composing docker image
docker-compose build --no-cache && docker compose up -d --force-recreate && docker compose exec llamafactory bash
- docker-compose logs -f
docker-compose logs -f
- listing packages
conda list
- To list specific pkg
conda list pkg_name
- Open Anaconda Powershell Prompt
- Run
Conda init bash
- To activate
conda activate env_name
- To deactivate
conda deactivate
- To create
conda create -n yourenvname python=x.x anaconda
- To activate
source activate yourenvname
- pure pip deactivate
source deactivate
- To install
conda install pkg_name
- Go to Anaconda Navigator and Create An Env
- Go to Pycharm Setting and Search Interpreter
- Choose Create new Interpreter
- Select your Env
- on Main page, choose edit config
- select your path
- Install python in conda
conda install python=3.10
- pip list
pip list
- pip uninstall pkg_name
pip uninstall pkg_name
- pip show/list 【one specific installed package detail 】
pip show pkg_name
- pip freeze > requirements.txt
pip freeze > requirements.txt
- pip install -r requirements.txt
pip install -r requirements.txt
- Verify num of
GPU
, theirRAM
,temp
nvidia-smi
- Verify version
!nvcc --version
-
Git show commits
git log --oneline
-
git rebase/merge commit before push
git reset HEAD~3
-
git merge after push
git rebase -I HEAD~3
follow the window and replace pick with squash
and leave the first pick
work as it is
- git delete all current changes before commit
git restore file_name
- Git stop file tracking
git rm -r --cached file_name
- install mscoco python api
!pip install git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI
Verify if cuda is available
python -c "import torch; print(torch.cuda.is_available())"
- Python machine learning helper functions
- Sample notebook for training
- Hardware Requriments for deep Learning
- Use Windows specific commands
- Use this for database like mysql configuration and troubleshooting
- Use this for server side deployment troubleshooting installation accessing
- Use this for nlp llm technical terminologies for review purpose
- Use this University Information
- Django Deployment using python buildin env
- Django Deployment using uwsgi
- Laravel Deployment With Livewire