Refactor the code to make it more modular
This commit is contained in:
parent
18e0ec955e
commit
98af4bfb0d
10 changed files with 737 additions and 713 deletions
|
@ -3,13 +3,12 @@
|
|||
Converts a transformers model to a format compatible with flexgen.
|
||||
|
||||
'''
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import numpy as np
|
||||
from pathlib import Path
|
||||
from sys import argv
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
from tqdm import tqdm
|
||||
from transformers import AutoModelForCausalLM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue