$ mlc_llm serve HF://mlc-ai/Llama-3.1-8B-Instruct-q4f32_1-MLC
import fs from 'fs/promises'
// app/layout.tsx | |
export default function Layout({ children }) { | |
return ( | |
<html> | |
<body> | |
<SomeBasicProviderTree> | |
{children} | |
</SomeBasicProviderTree> | |
</body> |
import 'dotenv/config' | |
import { generateText } from 'ai' | |
import { createOpenAI as createGroq } from '@ai-sdk/openai' | |
import fs from 'fs/promises' | |
import _ from 'lodash' | |
const wait = ms => new Promise(res => setTimeout(res, ms)) | |
const groq = createGroq({ |
$ mlc_llm serve HF://mlc-ai/Llama-3.1-8B-Instruct-q4f32_1-MLC
import fs from 'fs/promises'
Words are derived from base experiences. The base of a word is actually the experience it represents.
In English, we don't have direct words for the things of experience, instead we at least subdivide experiences into:
const PREFIXES = ['ག', 'ད', 'བ', 'མ', 'འ'] | |
const SUPERSCRIPTS = ['ར', 'ལ', 'ས'] | |
const EXTENDED_ROOT_LETTERS = [ | |
'ཫ', | |
'ཬ', | |
'ཁ༹', | |
'ག༹', | |
'ཕ༹', | |
'བ༹', | |
'གྷ', |
{ | |
"\u02beu4": ["\ud808\udc00"], | |
"a": ["\ud808\udc00"], | |
"aia2": ["\ud808\udc00"], | |
"aya2": ["\ud808\udc00"], | |
"barx": ["\ud808\udc00", "\ud808\udf0b"], | |
"buni\u014bx": ["\ud808\udc00", "\ud808\udc00\ud808\uddb9"], | |
"burx": [ | |
"\ud808\udc00", | |
"\ud808\udc41\ud808\udd46\ud808\udc41", |
A DateTime
should really be treated as a TimeSpan
which is taken as the difference from a standard reference point (like Jan 1, 1970). Something like that:
// 2024
const y2024 = { year: 2024 } | { thousand: 2, year: 24 }
// 2000BCE = -2000 - 1970
const y2000bce = { year: -3970 }
// 13.8bya
const t13_8bya = { billion: -13, million: -8 }
import _ from 'lodash' | |
import { ReadStream } from 'fs' | |
import busboy, { FileInfo } from 'busboy' | |
import DEBUG from 'debug' | |
import kink from './kink.js' | |
import { Event } from './router.js' | |
const debug = DEBUG('load-file') | |
export type HandleFileInput = { |
import { Request, Response } from 'express' | |
import _ from 'lodash' | |
import { ReadStream } from 'fs' | |
import onFinished from 'on-finished' | |
import busboy, { FileInfo } from 'busboy' | |
import DEBUG from 'debug' | |
import kink from './kink.js' | |
const debug = DEBUG('load-file') |
const fs = require('fs') | |
const codecs = ` D.VI.S 012v Uncompressed 4:2:2 10-bit | |
D.V.L. 4xm 4X Movie | |
D.VI.S 8bps QuickTime 8BPS video | |
.EVIL. a64_multi Multicolor charset for Commodore 64 (encoders: a64multi) | |
.EVIL. a64_multi5 Multicolor charset for Commodore 64, extended with 5th color (colram) (encoders: a64multi5) | |
D.V..S aasc Autodesk RLE | |
D.V.L. agm Amuse Graphics Movie | |
D.VIL. aic Apple Intermediate Codec |