Skip to content

Instantly share code, notes, and snippets.

View emekdahl's full-sized avatar

Emily Ekdahl emekdahl

View GitHub Profile
@veekaybee
veekaybee / normcore-llm.md
Last active June 18, 2024 17:30
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@jasonjmcghee
jasonjmcghee / cached_chroma.py
Last active June 7, 2024 14:45
Cached embeddings in Chroma made easy.
from abc import ABC
from typing import List, Optional, Any
import chromadb
from langchain.docstore.document import Document
from langchain.embeddings.base import Embeddings
from langchain.vectorstores import Chroma
class CachedChroma(Chroma, ABC):
@tuulos
tuulos / config_train.py
Created February 4, 2023 00:52
Train a model with a config file using Metaflow
from metaflow import FlowSpec, step, IncludeFile
def dataset_wine():
from sklearn import datasets
return datasets.load_wine(return_X_y=True)
def model_knn(train_data, train_labels):
from sklearn.neighbors import KNeighborsClassifier
model = KNeighborsClassifier()
model.fit(train_data, train_labels)
@anythinggraphic
anythinggraphic / css-jquery-responsive-mobile-navigation-menu.css
Last active November 22, 2016 23:58
Simple, Easy CSS & jQuery Responsive Mobile Navigation Menu
.responsive-nav-icon::before,
.responsive-nav-close::before {
color: #93a748;
content: "\f0c9";
font-family: FontAwesome;
font-size: 22px;
position: relative;
}
.responsive-nav-close::before {
@9cardinals
9cardinals / compound interest
Last active February 3, 2020 21:13
simple compound interest calculator using math operations in ruby
# principal amount
p = 10_000
# annual rate of interest
r = 0.05
# number of years
t = 5