Skip to content

Instantly share code, notes, and snippets.

View edp1096's full-sized avatar

Robert Sung-wook Shin edp1096

View GitHub Profile
@edp1096
edp1096 / 00_contents.md
Last active June 17, 2024 18:49
오렌지파이5플러스 설정 메모
@edp1096
edp1096 / ! CUDA & OpenCL Intro
Created May 27, 2023 04:51 — forked from yohanesgultom/! CUDA & OpenCL Intro
Simple CUDA and OpenCL code
Simple CUDA and OpenCL code
Compilation:
* CUDA (*.cu): nvcc filename.cu
* CUDA + CUBLAS (*.cu): nvcc filename.cu -lcublas
* OpenCL (*.c): gcc filename.c -lOpenCL
@edp1096
edp1096 / build_cl.cmd
Last active May 10, 2023 14:38
llama.cpp build /w clblast on windows & msvc. names before openblast_cmake is directory.
@echo off
curl --progress-bar -Lo clblast.zip "https://github.com/CNugteren/CLBlast/releases/download/1.5.3/CLBlast-1.5.3-Windows-x64.zip"
curl --progress-bar -Lo opencl.zip "https://github.com/KhronosGroup/OpenCL-SDK/releases/download/v2023.04.17/OpenCL-SDK-v2023.04.17-Win-x64.zip"
md openclblast
tar -xf clblast.zip -C openclblast
tar -xf opencl.zip -C openclblast
xcopy openclblast\OpenCL-SDK-v2023.04.17-Win-x64 openclblast /E /Y

스탠포드알파카 학습하기

  • runpod.io에서 실행
  • Llama-7B 사용
  • llama 모델을 workspace 밖 홈디렉에서 다운받기 때문에 컨테이너 용량을 15GB 정도 잡아줘야 한다
  • Volume 용량은 30G 이상으로 잡아줘야 한다 - 파인튜닝 끝나고 output에 저장되는 파일들이 25GB 남짓되는 크기가 필요하기 때문
  • 허깅페이스 모델은 별도 다운 받을 필요 없고
  • A100 80G X 4로 처음 시작 1% 지점에서 예상시간 5:37:57 찍힘

Install vi

@edp1096
edp1096 / console.cmd
Last active September 3, 2022 01:13
Get windows androidsdk
@echo off
set BUILDTOOLS_VERSION=33.0.0
cd jre
set JAVA_HOME=%cd%
set PATH=%cd%;%cd%\bin;%PATH%
cd ..
cd tools
@rem cd tidb-server
@rem go build -o ../bin
@echo off
set "tidbstorepath=%cd%\store\tidb"
set "tidbstorepath=%tidbstorepath:\=/%"
echo Listening at localhost:4000
@edp1096
edp1096 / ko-cal.html
Last active January 25, 2022 11:09
Calendar using knockout.js
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.0/moment.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/knockout@3.5.1/build/output/knockout-latest.js"></script>
</head>
<body>
<div class="cal-cavity">
<button onclick="moveThisMonth()">Goto this month</button>
@edp1096
edp1096 / Vector2D.js
Created January 21, 2022 15:27
JavaScript 2D Vector Class
/*
Simple 2D JavaScript Vector Class
Hacked from evanw's lightgl.js
https://github.com/evanw/lightgl.js/blob/master/src/vector.js
*/
function Vector(x, y) {
@edp1096
edp1096 / 00_README.md
Created December 24, 2021 20:53 — forked from reagent/00_README.md
Custom HTTP Routing in Go

Custom HTTP Routing in Go

Basic Routing

Responding to requests via simple route matching is built in to Go's net/http standard library package. Just register the path prefixes and callbacks you want invoked and then call the ListenAndServe to have the default request handler invoked on each request. For example:

package main

import (
@edp1096
edp1096 / simsons-ko.html
Last active December 4, 2021 21:02
Knockout.js Taste
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Knockout.js 테스트</title>
<script src="http://cdnjs.cloudflare.com/ajax/libs/knockout/3.5.0/knockout-min.js"></script>
</head>