Skip to content

Instantly share code, notes, and snippets.

View kiranandcode's full-sized avatar
🏳️‍⚧️
back in business

Kiran Gopinathan kiranandcode

🏳️‍⚧️
back in business
View GitHub Profile
@kiranandcode
kiranandcode / dune
Created November 30, 2024 16:27
Simple Function Match Macros for OCaml
(library
(name macros)
(modules "macros")
(libraries ppxlib)
(kind ppx_rewriter)
(preprocess (pps ppxlib.metaquot)))
(executable
(public_name macros)
(modules "main")
from tqdm import tqdm
from transformers import AutoTokenizer, pipeline
from pathlib import Path
import torch
model_name = "kirancodes/llemma-7b-lora-sft-pretrained-RQ2"
tokenizer = AutoTokenizer.from_pretrained(model_name)
llama_pipeline = pipeline(
"text-generation",
tokenizer=tokenizer,