From 3ddd41e2887ed08fc8192540719a76aa02bdae64 Mon Sep 17 00:00:00 2001 From: Pierre-Louis <78484833+PierreLouisLetoquart@users.noreply.github.com> Date: Fri, 28 Feb 2025 11:26:54 -0500 Subject: [PATCH] chore(lora): remove python 3.7+ check --- lora/lora.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lora/lora.py b/lora/lora.py index 5f3a5c01..23a9afdc 100644 --- a/lora/lora.py +++ b/lora/lora.py @@ -1,6 +1,5 @@ # Copyright © 2023-2024 Apple Inc. -import os import sys import argparse import json @@ -18,10 +17,8 @@ from models import LoRALinear # Disable output buffering to see print statements in real-time -if sys.version_info >= (3, 7): - sys.stdout.reconfigure(line_buffering=True) -else: - sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 1) +sys.stdout.reconfigure(line_buffering=True) + def build_parser(): parser = argparse.ArgumentParser(description="LoRA or QLoRA finetuning.")