Skip to content

Instantly share code, notes, and snippets.

View barvin04's full-sized avatar

Abhinaba Bala barvin04

View GitHub Profile
@barvin04
barvin04 / finetune_llama_v2.py
Created July 20, 2023 04:54 — 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
@barvin04
barvin04 / Image_Moments.ipynb
Created November 17, 2022 07:29 — forked from xvdp/Image_Moments.ipynb
Image Moments, test and Implementation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@barvin04
barvin04 / Image_Moments.ipynb
Created November 17, 2022 07:29 — forked from xvdp/Image_Moments.ipynb
Image Moments, test and Implementation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@barvin04
barvin04 / usefull-linux-commands.md
Created August 24, 2022 06:30 — forked from sayef/usefull-linux-commands.md
Useful Linux Commands

Screen Commands

  1. Create a screen : screen -S SCREEN_NAME
  2. Detach (getting out of the screen) : Press ctrl+A & ctrl+D respectively
  3. Reattach (getting in the screen) : screen -r SCREEN_NAME/ID
  4. List of screens with process id : screen -ls
  5. Kill a screen with process id : screen -X -S [PID] kill

Kill processes with known keywords

@barvin04
barvin04 / H36M.ipynb
Created August 12, 2021 10:50 — forked from nulledge/H36M.ipynb
Description for Human3.6M dataset.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@barvin04
barvin04 / gist:f35e14374132fb86ae920a50e1bab550
Created November 8, 2017 08:59 — forked from econchick/gist:4666413
Python implementation of Dijkstra's Algorithm
class Graph:
def __init__(self):
self.nodes = set()
self.edges = defaultdict(list)
self.distances = {}
def add_node(self, value):
self.nodes.add(value)
def add_edge(self, from_node, to_node, distance):
@barvin04
barvin04 / gist:25ef0e0b4a8b371807b1b8e872910bbe
Created February 11, 2017 09:27 — forked from ptigas/gist:2820165
linked list implementation in python
class Node :
def __init__( self, data ) :
self.data = data
self.next = None
self.prev = None
class LinkedList :
def __init__( self ) :
self.head = None