This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import socket | |
| import time | |
| import jsonargparse | |
| import requests | |
| import torch | |
| from sglang.utils import execute_shell_command, print_highlight, reserve_port, terminate_process, wait_for_server | |
| MASTER_ADDR = os.getenv("MASTER_ADDR", "localhost") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| import hashlib | |
| import json | |
| import logging | |
| import os | |
| import random | |
| import time | |
| import traceback | |
| from abc import ABC, abstractmethod | |
| from collections import defaultdict |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pickle | |
| import math | |
| import numpy as np | |
| import os | |
| import torch | |
| import torch.nn.functional as F | |
| from argparse import Namespace | |
| from einops import rearrange |