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.
![Screenshot 2023-12-18 at 10 40 27 PM](https://private-user-images.githubusercontent.com/3837836/291468646-4c30ad72-76ee-4939-a5fb-16b570d38cf2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1MDYzNjcsIm5iZiI6MTcyMTUwNjA2NywicGF0aCI6Ii8zODM3ODM2LzI5MTQ2ODY0Ni00YzMwYWQ3Mi03NmVlLTQ5MzktYTVmYi0xNmI1NzBkMzhjZjIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjBUMjAwNzQ3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTRlYzNmYjg2N2JkOThiMTFjMzhiMDYzN2YxNTRiNjQ0MjlkMjMyNWNjMTgxMTM2ZDQ4MjdjMzhhY2FkMTRmMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.IcniJm7myrx9Vyg4kwc8kDV3O1qjyvLMIRlImA8mahg)
base_model: tiiuae/falcon-7b | |
base_model_config: tiiuae/falcon-7b | |
trust_remote_code: true | |
model_type: AutoModelForCausalLM | |
tokenizer_type: AutoTokenizer | |
load_in_8bit: false | |
load_in_4bit: true | |
gptq: false | |
strict: false | |
push_dataset_to_hub: |
from langchain.llms.base import LLM | |
from typing import Optional, List, Mapping, Any | |
import requests | |
from langchain.llms.utils import enforce_stop_tokens | |
class CustomLLM(LLM): | |
def __init__(self, url: str): | |
self.url = url |
import { GeomUtils, TLCursor } from '@tldraw/core' | |
import * as React from 'react' | |
function getCursorCss(svg: string, r: number, f = false) { | |
return ( | |
`url("data:image/svg+xml,<svg height='32' width='32' viewBox='0 0 35 35' xmlns='http://www.w3.org/2000/svg'><g fill='none' style='transform-origin:center center' transform='rotate(${r})${ | |
f ? ` scale(-1,-1) translate(0, -32)` : '' | |
}'>` + | |
svg.replaceAll(`"`, `'`) + | |
'</g></svg>") 16 16, pointer' |
If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.
class Frame extends Component { | |
componentDidMount() { | |
this.iframeHead = this.node.contentDocument.head | |
this.iframeRoot = this.node.contentDocument.body | |
this.forceUpdate() | |
} | |
render() { | |
const { children, head, ...rest } = this.props | |
return ( |
import string | |
import re | |
import nltk | |
def normalize(text): | |
# remove punctuation | |
text = re.sub('[%s]' % re.escape(string.punctuation), '', text) | |
# split into words | |
# nltk.data.path.append("/nltk_data") | |
from nltk.tokenize import word_tokenize |
function install_faiss() { | |
pyenv shell rise | |
pip install numpy | |
sudo apt-get install -y \ | |
build-essential \ | |
libopenblas-dev \ | |
gfortran \ | |
swig | |
PREFIX_MAIN=$(pyenv virtualenv-prefix) |