Skip to content

Instantly share code, notes, and snippets.

View szymonrucinski's full-sized avatar
🎯
Focusing

Szymon Ruciński szymonrucinski

🎯
Focusing
View GitHub Profile
pip install -q -U bitsandbytes
pip install -q -U git+https://github.com/huggingface/transformers.git
pip install -q -U git+https://github.com/huggingface/peft.git
pip install -q -U git+https://github.com/huggingface/accelerate.git
pip install -q -U datasets
pip install -q -U git+https://github.com/lvwerra/trl.git
pip install wandb
pip install sentencepiece
@szymonrucinski
szymonrucinski / finetune_llama_v2.py
Last active July 19, 2023 13:24 — forked from younesbelkada/finetune_llama_v2.py
Fine tune Llama v2 models on Guanaco Dataset
# coding=utf-8
# Copyright 2023 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@szymonrucinski
szymonrucinski / save_content_in_nb_dir.py
Last active March 29, 2023 09:58
Save jupyter notebook dir and folders recursively to ntoebook.tar.gz file
#Try running this as separate cell in one of your notebooks:
!tar chvfz notebook.tar.gz *
@szymonrucinski
szymonrucinski / GitCommitEmoji.md
Created January 23, 2023 12:46 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@szymonrucinski
szymonrucinski / gist:c7c10e60d085fa896084dbc1d5bcf719
Created November 27, 2021 18:40 — forked from djaiss/gist:85a0ada83e6bca68e41e
Block Twitter/Facebook in your /etc/hosts
# Block Facebook IPv4
127.0.0.1 www.facebook.com
127.0.0.1 facebook.com
127.0.0.1 login.facebook.com
127.0.0.1 www.login.facebook.com
127.0.0.1 fbcdn.net
127.0.0.1 www.fbcdn.net
127.0.0.1 fbcdn.com
127.0.0.1 www.fbcdn.com
127.0.0.1 static.ak.fbcdn.net
@szymonrucinski
szymonrucinski / tor.sh
Last active November 10, 2021 15:16
Setup TOR protocol to surf with any browser on Mac.
#!/usr/bin/env bash
# 'Wi-Fi' or 'Ethernet' or 'Display Ethernet'
INTERFACE=Wi-Fi
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
@szymonrucinski
szymonrucinski / google_speech_to_text.ipynb
Last active June 2, 2021 08:15
Convert speech to text using google-text-to-speech API in python.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@szymonrucinski
szymonrucinski / 2gpus.bat
Last active March 3, 2021 22:05
Fix for Lolminer halving hashrate while mining with Nvidia gtx 1660 series GPUS.
@ECHO OFF
:: Check WMIC is available
WMIC.EXE Alias /? >NUL 2>&1 || GOTO s_error
setlocal enableDelayedExpansion
Rem #################################
Rem ## Begin of user-editable part ##
Rem #################################