Commit c0b36010 authored by PengGao's avatar PengGao Committed by GitHub
Browse files

style: remove unused import (#184)

parent f6d4fc85
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
import logging import logging
import torch import torch
import torch.cuda.amp as amp
import torch.distributed as dist import torch.distributed as dist
import torch.nn as nn import torch.nn as nn
import torch.nn.functional as F import torch.nn.functional as F
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
import logging import logging
import torch import torch
import torch.cuda.amp as amp
import torch.nn as nn import torch.nn as nn
import torch.nn.functional as F import torch.nn.functional as F
from einops import rearrange from einops import rearrange
......
...@@ -4,7 +4,7 @@ import torch ...@@ -4,7 +4,7 @@ import torch
from loguru import logger from loguru import logger
from transformers import AutoModelForCausalLM, AutoTokenizer from transformers import AutoModelForCausalLM, AutoTokenizer
from lightx2v.utils.profiler import ProfilingContext, ProfilingContext4Debug from lightx2v.utils.profiler import ProfilingContext
sys_prompt = """ sys_prompt = """
Transform the short prompt into a detailed video-generation caption using this structure: Transform the short prompt into a detailed video-generation caption using this structure:
......
...@@ -4,7 +4,7 @@ import signal ...@@ -4,7 +4,7 @@ import signal
import sys import sys
import threading import threading
from datetime import datetime from datetime import datetime
from typing import List, Optional from typing import Optional
import psutil import psutil
import torch import torch
......
...@@ -19,7 +19,7 @@ indent-width = 4 ...@@ -19,7 +19,7 @@ indent-width = 4
[tool.ruff.lint] [tool.ruff.lint]
extend-select = ["I"] extend-select = ["I", "F401"]
ignore = ["F"] ignore = ["F"]
[tool.ruff.lint.per-file-ignores] [tool.ruff.lint.per-file-ignores]
......
import random
import string
import threading import threading
import time import time
from datetime import datetime
import requests import requests
from loguru import logger from loguru import logger
......
...@@ -7,8 +7,7 @@ Extract LoRA weights from the difference between two models ...@@ -7,8 +7,7 @@ Extract LoRA weights from the difference between two models
import argparse import argparse
import os import os
from pathlib import Path from typing import Dict, Optional
from typing import Any, Dict, Optional
import torch import torch
from safetensors import safe_open from safetensors import safe_open
......
...@@ -7,8 +7,7 @@ Merge a source model with LoRA weights to create a new model ...@@ -7,8 +7,7 @@ Merge a source model with LoRA weights to create a new model
import argparse import argparse
import os import os
from pathlib import Path from typing import Dict, Optional
from typing import Any, Dict, Optional
import torch import torch
from safetensors import safe_open from safetensors import safe_open
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment