This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import json | |
import argparse | |
from pathlib import Path | |
from dataclasses import dataclass | |
from typing import Optional, Tuple | |
from os.path import abspath, expanduser | |
from sentencepiece import SentencePieceProcessor | |
import mlx.core as mx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import time | |
from threading import Thread | |
import multiprocessing as mp | |
import extrainterpreters as ei | |
from multiprocessing.dummy import Pool as ThreadPool | |
def mandelbrot(c, max_iterations=100): | |
z = 0 |