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 / main.go
Last active July 21, 2024 18:44
달러원 환율
package main
import (
"fmt"
"io"
"net/http"
"regexp"
"strings"
)
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calendar</title>
<link rel="icon" href="data:,">
@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/[email protected]/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) {