mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 17:31:18 +08:00
add numpy as a requirement to run lora.py (#238)
* add numpy as a requirement to run lora.py * removed unused imports
This commit is contained in:
parent
37b41cec60
commit
37856f70a8
@ -5,13 +5,13 @@ import json
|
||||
import math
|
||||
import time
|
||||
from pathlib import Path
|
||||
from typing import List, Optional, Tuple
|
||||
from typing import List
|
||||
|
||||
import mlx.core as mx
|
||||
import mlx.nn as nn
|
||||
import mlx.optimizers as optim
|
||||
import numpy as np
|
||||
from mlx.utils import tree_flatten, tree_map, tree_unflatten
|
||||
from mlx.utils import tree_flatten, tree_unflatten
|
||||
from models import LoRALinear, Model, ModelArgs
|
||||
from sentencepiece import SentencePieceProcessor
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
mlx>=0.0.7
|
||||
sentencepiece
|
||||
torch
|
||||
numpy
|
Loading…
Reference in New Issue
Block a user