mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 09:21: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 math
|
||||||
import time
|
import time
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import List, Optional, Tuple
|
from typing import List
|
||||||
|
|
||||||
import mlx.core as mx
|
import mlx.core as mx
|
||||||
import mlx.nn as nn
|
import mlx.nn as nn
|
||||||
import mlx.optimizers as optim
|
import mlx.optimizers as optim
|
||||||
import numpy as np
|
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 models import LoRALinear, Model, ModelArgs
|
||||||
from sentencepiece import SentencePieceProcessor
|
from sentencepiece import SentencePieceProcessor
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
mlx>=0.0.7
|
mlx>=0.0.7
|
||||||
sentencepiece
|
sentencepiece
|
||||||
torch
|
torch
|
||||||
|
numpy
|
Loading…
Reference in New Issue
Block a user