mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 17:29:22 +01:00
Reorder the imports here too
This commit is contained in:
parent
219366342b
commit
76d3d7ddb3
@ -7,10 +7,11 @@ python convert-to-torch.py models/opt-1.3b
|
|||||||
The output will be written to torch-dumps/name-of-the-model.pt
|
The output will be written to torch-dumps/name-of-the-model.pt
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from transformers import AutoModelForCausalLM
|
|
||||||
import torch
|
|
||||||
from sys import argv
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from sys import argv
|
||||||
|
|
||||||
|
import torch
|
||||||
|
from transformers import AutoModelForCausalLM
|
||||||
|
|
||||||
path = Path(argv[1])
|
path = Path(argv[1])
|
||||||
model_name = path.name
|
model_name = path.name
|
||||||
|
@ -4,9 +4,9 @@ This is a library for formatting GPT-4chan and chat outputs as nice HTML.
|
|||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
import copy
|
||||||
import re
|
import re
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import copy
|
|
||||||
|
|
||||||
def generate_basic_html(s):
|
def generate_basic_html(s):
|
||||||
s = '\n'.join([f'<p style="margin-bottom: 20px">{line}</p>' for line in s.split('\n')])
|
s = '\n'.join([f'<p style="margin-bottom: 20px">{line}</p>' for line in s.split('\n')])
|
||||||
|
Loading…
Reference in New Issue
Block a user