Skip to content

Instantly share code, notes, and snippets.

View BangBOOM's full-sized avatar
🎯
Focusing

Arik BangBOOM

🎯
Focusing
View GitHub Profile
@BangBOOM
BangBOOM / llama2.jl
Last active July 28, 2023 14:15 — forked from cafaxo/llama2.jl
support using prompt
# this file contains a Julia port of https://github.com/karpathy/llama2.c
# all credit goes to Andrej Karpathy (author of llama2.c)
using LinearAlgebra
using StatsBase
using Printf
# Transformer and RunState structs, and related memory management
struct Config