Skip to content

Instantly share code, notes, and snippets.

View Naman-ntc's full-sized avatar
💻
Working

Naman Jain Naman-ntc

💻
Working
View GitHub Profile
BASE_IMPORTS = """
from string import *
from re import *
from datetime import *
from collections import *
from heapq import *
from bisect import *
from copy import *
from math import *
from random import *
def start_model_server(model_name : str, client : OpenAI):
def get_model():
models = client.models.list()
model = models.data[0].id
return model
import torch
num_gpus = torch.cuda.device_count()
command_args = [
"python",