Skip to content

Commit 9bb44a0

Browse files
committed
🔥 fix(bug): mistal MLX impl doesn't import torch
1 parent 12d71e3 commit 9bb44a0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
project = 'magnet'
1212
copyright = '2023, Prismadic, LLC'
1313
author = 'Prismadic, LLC.'
14-
release = '0.3.16'
14+
release = '0.3.17'
1515

1616
# -- General configuration ---------------------------------------------------
1717
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

magnet/utils/mlx/mistral.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from sentencepiece import SentencePieceProcessor
1818
from magnet.utils.globals import _f
1919
from magnet.utils.data_classes import MistralArgs
20-
20+
import torch.nn as nn
2121

2222
class RMSNorm(nn.Module):
2323
def __init__(self, dims: int, eps: float = 1e-5):

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "llm_magnet"
3-
version = "0.3.16"
3+
version = "0.3.17"
44
description = "the small distributed language model toolkit. fine-tune state-of-the-art LLMs anywhere, rapidly."
55
readme = "dynamic"
66

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='llm_magnet',
5-
version='0.3.16',
5+
version='0.3.17',
66
description="the small distributed language model toolkit. fine-tune state-of-the-art LLMs anywhere, rapidly.",
77
long_description=open('README.md').read(),
88
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)