mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-19 11:28:07 +08:00
Made llama and mistral files mypy compatible (#1359)
* Made mypy compatible * reformatted * Added more fixes * Added fixes to speculative-decoding * Fixes * fix circle * revert some stuff --------- Co-authored-by: Awni Hannun <awni@apple.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import argparse
|
||||
import json
|
||||
import math
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
from pathlib import Path
|
||||
@@ -16,7 +17,7 @@ from mlx.utils import tree_flatten
|
||||
from models import LoRALinear
|
||||
|
||||
# Disable output buffering to see print statements in real-time
|
||||
sys.stdout.reconfigure(line_buffering=True)
|
||||
sys.stdout = os.fdopen(sys.stdout.fileno(), "w", buffering=1)
|
||||
|
||||
|
||||
def build_parser():
|
||||
|
Reference in New Issue
Block a user