mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-01 04:14:38 +08:00
Add llms subdir + update README (#145)
* add llms subdir + update README * nits * use same pre-commit as mlx * update readmes a bit * format
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import math
|
||||
|
||||
import mlx.core as mx
|
||||
from mlx.data.datasets import load_cifar10
|
||||
import math
|
||||
|
||||
|
||||
def get_cifar10(batch_size, root=None):
|
||||
|
@@ -1,11 +1,11 @@
|
||||
import argparse
|
||||
import time
|
||||
import resnet
|
||||
import mlx.nn as nn
|
||||
import mlx.core as mx
|
||||
import mlx.optimizers as optim
|
||||
from dataset import get_cifar10
|
||||
|
||||
import mlx.core as mx
|
||||
import mlx.nn as nn
|
||||
import mlx.optimizers as optim
|
||||
import resnet
|
||||
from dataset import get_cifar10
|
||||
|
||||
parser = argparse.ArgumentParser(add_help=True)
|
||||
parser.add_argument(
|
||||
|
@@ -6,11 +6,11 @@ There's no BatchNorm is mlx==0.0.4, using LayerNorm instead.
|
||||
"""
|
||||
|
||||
from typing import Any
|
||||
|
||||
import mlx.core as mx
|
||||
import mlx.nn as nn
|
||||
from mlx.utils import tree_flatten
|
||||
|
||||
|
||||
__all__ = [
|
||||
"ResNet",
|
||||
"resnet20",
|
||||
|
Reference in New Issue
Block a user