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.
| if (new URLSearchParams(window.location.search).get('portal')) { | |
| // <create start portal> | |
| // Create portal group to contain all portal elements | |
| const startPortalGroup = new THREE.Group(); | |
| startPortalGroup.position.set(SPAWN_POINT_X, SPAWN_POINT_Y, SPAWN_POINT_Z); | |
| startPortalGroup.rotation.x = 0.35; | |
| startPortalGroup.rotation.y = 0; | |
| // Create portal effect |
| 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.