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.

import tqdm | |
import numpy as np | |
import torch | |
import torch.distributed as dist | |
import transformers | |
def extract_xml_answer(text: str) -> str: | |
answer = text.split("<final_answer>")[-1] | |
answer = answer.split("</final_answer>")[0] | |
return answer.strip() |
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' |
import getPixels from "get-pixels"; | |
import { max, min } from "lodash"; | |
import { NdArray } from "ndarray"; | |
import { Vector3 } from "three"; | |
// Example, use like: | |
const makeHeightfieldColliderFromImage = async () => { | |
const heightMapTexture = "myimage.png"; | |
const xSubdivisions = 200; | |
const zSubdivisions = 200; |
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 ( |