Skip to content

Commit

Permalink
lintg
Browse files Browse the repository at this point in the history
  • Loading branch information
aaravnavani committed Aug 29, 2024
1 parent 421a0ad commit 966c5d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions inference/download_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
)
def download_model(model_name, model_revision, force_download=False):
from huggingface_hub import snapshot_download
from transformers import AutoTokenizer, AutoModelForCausalLM
import json
from transformers import AutoTokenizer
import os

volume.reload()
Expand Down
3 changes: 0 additions & 3 deletions inference/serving-non-optimized-fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ def load(self):

@modal.method()
def generate(self, chat):
import torch
from torch.nn.functional import softmax

tokenizer = self.tokenizer
model = self.model

Expand Down

0 comments on commit 966c5d4

Please sign in to comment.