mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 11:45:16 +08:00
chore(lora): remove python 3.7+ check
This commit is contained in:
parent
ae0a39d1b4
commit
3ddd41e288
@ -1,6 +1,5 @@
|
|||||||
# Copyright © 2023-2024 Apple Inc.
|
# Copyright © 2023-2024 Apple Inc.
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
import argparse
|
import argparse
|
||||||
import json
|
import json
|
||||||
@ -18,10 +17,8 @@ from models import LoRALinear
|
|||||||
|
|
||||||
|
|
||||||
# Disable output buffering to see print statements in real-time
|
# Disable output buffering to see print statements in real-time
|
||||||
if sys.version_info >= (3, 7):
|
sys.stdout.reconfigure(line_buffering=True)
|
||||||
sys.stdout.reconfigure(line_buffering=True)
|
|
||||||
else:
|
|
||||||
sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 1)
|
|
||||||
|
|
||||||
def build_parser():
|
def build_parser():
|
||||||
parser = argparse.ArgumentParser(description="LoRA or QLoRA finetuning.")
|
parser = argparse.ArgumentParser(description="LoRA or QLoRA finetuning.")
|
||||||
|
Loading…
Reference in New Issue
Block a user