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:
Param Thakkar
2025-04-24 02:53:46 +05:30
committed by GitHub
parent c52cc748f8
commit 4c9f9f9be7
10 changed files with 32 additions and 29 deletions

View File

@@ -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():