repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
test.py
null
null
null
null
null
null
Python
2026-05-04T02:01:11.312181
# -*- coding: utf-8 -*- from __future__ import print_function, division import argparse import torch import torch.nn as nn import torch.optim as optim from torch.optim import lr_scheduler from torch.autograd import Variable import torch.backends.cudnn as cudnn import numpy as np import torchvision from torchvision im...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
test_MSMT.py
null
null
null
null
null
null
Python
2026-05-04T02:01:11.358796
# -*- coding: utf-8 -*- from __future__ import print_function, division import argparse import torch import torch.nn as nn import torch.optim as optim from torch.optim import lr_scheduler from torch.autograd import Variable import torch.backends.cudnn as cudnn import numpy as np import torchvision from torchvision im...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
test_with_TensorRT.py
null
null
null
null
null
null
Python
2026-05-04T02:01:11.370852
# -*- coding: utf-8 -*- from __future__ import print_function, division import argparse import torch from torch2trt import torch2trt import torch.nn as nn import torch.optim as optim from torch.optim import lr_scheduler from torch.autograd import Variable import torch.backends.cudnn as cudnn import numpy as np import...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
train_DDP.py
null
null
null
null
null
null
Python
2026-05-04T02:01:11.397954
# -*- coding: utf-8 -*- from __future__ import print_function, division import argparse import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable from torchvision import datasets, transforms import torch.backends.cudnn as cudnn import matplotlib matplotlib.use('agg') import ma...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
re_ranking.py
null
null
null
null
null
null
Python
2026-05-04T02:01:11.460643
#!/usr/bin/env python2/python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 26 14:46:56 2017 @author: luohao Modified by Houjing Huang, 2017-12-22. - This version accepts distance matrix instead of raw features. - The difference of `/` division between python 2 and 3 is handled. - numpy.float16 is replaced by numpy...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
tool/clear_model.py
null
null
null
null
null
null
Python
2026-05-04T02:01:11.472553
import os root = '../model/' nn = [] for f in os.listdir(root): if f == '.gitkeep': continue for ff in os.listdir(root+f): if ff[0:3] == 'net': if ff[5] =='a': continue else: path = root+f+'/'+ff print(path) ...
layumi/Person_reID_baseline_pytorch
https://github.com/layumi/Person_reID_baseline_pytorch
null
null
null
null
4,423
null
null
mit
null
null
null
null
null
null
null
train.py
null
null
null
null
null
null
Python
2026-05-04T02:01:11.627824
# -*- coding: utf-8 -*- from __future__ import print_function, division import argparse import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable from torchvision import datasets, transforms import torch.backends.cudnn as cudnn import matplotlib matplotlib.use('agg') import ma...
myreader-io/myGPTReader
https://github.com/myreader-io/myGPTReader
null
null
null
null
4,421
null
null
mit
null
null
null
null
null
null
null
app/daily_hot_news.py
null
null
null
null
null
null
Python
2026-05-04T02:01:19.009899
import json from datetime import date import logging import feedparser import html2text import concurrent.futures import os from app.gpt import get_answer_from_llama_web current_file_path = os.path.abspath(__file__) current_dir_path = os.path.dirname(current_file_path) hot_news_file_path = os.path.join(current_dir_pat...
myreader-io/myGPTReader
https://github.com/myreader-io/myGPTReader
null
null
null
null
4,421
null
null
mit
null
null
null
null
null
null
null
app/ttl_set.py
null
null
null
null
null
null
Python
2026-05-04T02:01:19.015534
from threading import Thread, Lock import time class TtlSet: def __init__(self): self.ttl = {} self.lock = Lock() # Start a background thread to periodically remove expired items t = Thread(target=self._cleaner) t.daemon = True t.start() def __len__(self): ...
myreader-io/myGPTReader
https://github.com/myreader-io/myGPTReader
null
null
null
null
4,421
null
null
mit
null
null
null
null
null
null
null
app/gpt.py
null
null
null
null
null
null
Python
2026-05-04T02:01:19.018297
import os import logging import hashlib import random import uuid import openai from pathlib import Path from llama_index import ServiceContext, GPTVectorStoreIndex, LLMPredictor, RssReader, SimpleDirectoryReader, StorageContext, load_index_from_storage from llama_index.readers.schema.base import Document from langcha...
myreader-io/myGPTReader
https://github.com/myreader-io/myGPTReader
null
null
null
null
4,421
null
null
mit
null
null
null
null
null
null
null
app/server.py
null
null
null
null
null
null
Python
2026-05-04T02:01:19.019756
import logging import re import os from datetime import datetime import requests from urllib.parse import urlparse from flask import Flask, request from flask_apscheduler import APScheduler from slack_bolt import App, BoltResponse from slack_bolt.adapter.flask import SlackRequestHandler from slack_bolt.error import Bol...
myreader-io/myGPTReader
https://github.com/myreader-io/myGPTReader
null
null
null
null
4,421
null
null
mit
null
null
null
null
null
null
null
app/prompt.py
null
null
null
null
null
null
Python
2026-05-04T02:01:19.026568
import logging from llama_index.prompts.prompts import QuestionAnswerPrompt QUESTION_ANSWER_PROMPT_TMPL_CN = ( "上下文信息如下所示: \n" "---------------------\n" "{context_str}" "\n---------------------\n" "我的问题是:{query_str}\n" ) QUESTION_ANSWER_PROMPT_TMPL_EN = ( "Context information is below. \n" ...
myreader-io/myGPTReader
https://github.com/myreader-io/myGPTReader
null
null
null
null
4,421
null
null
mit
null
null
null
null
null
null
null
app/user.py
null
null
null
null
null
null
Python
2026-05-04T02:01:19.034111
from datetime import datetime import pytz import json import logging import os import requests CF_ACCESS_CLIENT_ID = os.environ.get('CF_ACCESS_CLIENT_ID') CF_ACCESS_CLIENT_SECRET = os.environ.get('CF_ACCESS_CLIENT_SECRET') def update_message_token_usage(user_id, message_id, message_type, llm_token_usage=0, embedding_...
myreader-io/myGPTReader
https://github.com/myreader-io/myGPTReader
null
null
null
null
4,421
null
null
mit
null
null
null
null
null
null
null
app/slash_command.py
null
null
null
null
null
null
Python
2026-05-04T02:01:19.035507
import json import os current_file_path = os.path.abspath(__file__) current_dir_path = os.path.dirname(current_file_path) slash_propmt_file_path = os.path.join(current_dir_path, "data", "prompt.json") with open(slash_propmt_file_path, "r") as f: prompt_data = json.load(f) def register_slack_slash_commands(slack...
myreader-io/myGPTReader
https://github.com/myreader-io/myGPTReader
null
null
null
null
4,421
null
null
mit
null
null
null
null
null
null
null
app/fetch_web_post.py
null
null
null
null
null
null
Python
2026-05-04T02:01:19.037745
import logging import os import json import html2text import requests import feedparser import validators import fnmatch from youtube_transcript_api import YouTubeTranscriptApi CF_ACCESS_CLIENT_ID = os.environ.get('CF_ACCESS_CLIENT_ID') CF_ACCESS_CLIENT_SECRET = os.environ.get('CF_ACCESS_CLIENT_SECRET') PHANTOMJSCLOU...
myreader-io/myGPTReader
https://github.com/myreader-io/myGPTReader
null
null
null
null
4,421
null
null
mit
null
null
null
null
null
null
null
app/rate_limiter.py
null
null
null
null
null
null
Python
2026-05-04T02:01:19.053359
import time class RateLimiter: def __init__(self, limit=10, period=3600): self.limit = limit self.period = period self.users = {} def allow_request(self, user_id): now = time.time() user_requests = self.users.get(user_id, []) user_requests = [req for req in user...
myreader-io/myGPTReader
https://github.com/myreader-io/myGPTReader
null
null
null
null
4,421
null
null
mit
null
null
null
null
null
null
null
app/util.py
null
null
null
null
null
null
Python
2026-05-04T02:01:19.589208
import hashlib import logging from langdetect import detect def md5(file_path): hash_md5 = hashlib.md5() with open(file_path, "rb") as f: for chunk in iter(lambda: f.read(4096), b""): hash_md5.update(chunk) return hash_md5.hexdigest() def get_youtube_video_id(url): if url is None: ...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/config/configurator.py
null
null
null
null
null
null
Python
2026-05-04T02:01:23.073488
# @Time : 2020/6/28 # @Author : Zihan Lin # @Email : linzihan.super@foxmail.com # UPDATE # @Time : 2020/10/04, 2021/3/2, 2021/2/17, 2021/6/30, 2022/7/6 # @Author : Shanlei Mu, Yupeng Hou, Jiawei Guan, Xingyu Pan, Gaowei Zhang # @Email : slmu@ruc.edu.cn, houyupeng@ruc.edu.cn, Guanjw@ruc.edu.cn, xy_pan@foxmail.com...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/dataloader/abstract_dataloader.py
null
null
null
null
null
null
Python
2026-05-04T02:01:23.106454
# @Time : 2020/7/7 # @Author : Yupeng Hou # @Email : houyupeng@ruc.edu.cn # UPDATE # @Time : 2022/7/8, 2020/10/22, 2020/9/23, 2022/7/6 # @Author : Zhen Tian, Yupeng Hou, Yushuo Chen, Gaowei Zhang # @email : chenyuwuxinn@gmail.com, houyupeng@ruc.edu.cn, chenyushuo@ruc.edu.cn, zgw15630559577@163.com """ recbole.d...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:01:23.123779
from __future__ import absolute_import from __future__ import print_function from __future__ import division __version__ = "1.2.1"
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/dataloader/general_dataloader.py
null
null
null
null
null
null
Python
2026-05-04T02:01:23.126307
# @Time : 2020/7/7 # @Author : Yupeng Hou # @Email : houyupeng@ruc.edu.cn # UPDATE # @Time : 2022/7/8, 2020/9/9, 2020/9/29, 2021/7/15, 2022/7/6 # @Author : Zhen Tian, Yupeng Hou, Yushuo Chen, Xingyu Pan, Gaowei Zhang # @email : chenyuwuxinn@gmail.com, houyupeng@ruc.edu.cn, chenyushuo@ruc.edu.cn, xy_pan@foxmail.c...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
docs/source/conf.py
null
null
null
null
null
null
Python
2026-05-04T02:01:23.130690
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:01:23.131732
from recbole.data.utils import * __all__ = [ "create_dataset", "data_preparation", "save_split_dataloaders", "load_split_dataloaders", ]
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/dataloader/user_dataloader.py
null
null
null
null
null
null
Python
2026-05-04T02:01:23.142503
# @Time : 2020/9/23 # @Author : Yushuo Chen # @Email : chenyushuo@ruc.edu.cn # UPDATE # @Time : 2022/7/8, 2020/9/23, 2020/12/28 # @Author : Zhen Tian, Yushuo Chen, Xingyu Pan # @email : chenyuwuxinn@gmail.com, chenyushuo@ruc.edu.cn, panxy@ruc.edu.cn """ recbole.data.dataloader.user_dataloader ##################...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/dataloader/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:01:23.142998
from recbole.data.dataloader.abstract_dataloader import * from recbole.data.dataloader.general_dataloader import * from recbole.data.dataloader.knowledge_dataloader import * from recbole.data.dataloader.user_dataloader import *
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/dataloader/knowledge_dataloader.py
null
null
null
null
null
null
Python
2026-05-04T02:01:23.170701
# @Time : 2020/7/7 # @Author : Yupeng Hou # @Email : houyupeng@ruc.edu.cn # UPDATE # @Time : 2022/7/8, 2020/9/18, 2020/9/21, 2020/8/31 # @Author : Zhen Tian, Yupeng Hou, Yushuo Chen, Kaiyuan Li # @email : chenyuwuxinn@gmail.com, houyupeng@ruc.edu.cn, chenyushuo@ruc.edu.cn, tsotfsk@outlook.com """ recbole.data.d...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/dataset/customized_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:01:23.923566
# @Time : 2020/10/19 # @Author : Yupeng Hou # @Email : houyupeng@ruc.edu.cn # UPDATE # @Time : 2021/7/9 # @Author : Yupeng Hou # @Email : houyupeng@ruc.edu.cn """ recbole.data.customized_dataset ################################## We only recommend building customized datasets by inheriting. Customized dataset...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/dataset/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:01:23.929770
from recbole.data.dataset.dataset import Dataset from recbole.data.dataset.sequential_dataset import SequentialDataset from recbole.data.dataset.kg_dataset import KnowledgeBasedDataset from recbole.data.dataset.kg_seq_dataset import KGSeqDataset from recbole.data.dataset.decisiontree_dataset import DecisionTreeDataset ...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/interaction.py
null
null
null
null
null
null
Python
2026-05-04T02:01:24.099057
# @Time : 2020/7/10 # @Author : Yupeng Hou # @Email : houyupeng@ruc.edu.cn # UPDATE # @Time : 2022/7/8, 2020/9/15, 2020/9/16, 2020/8/12 # @Author : Zhen Tian, Yupeng Hou, Yushuo Chen, Xingyu Pan # @email : chenyuwuxinn@gmail.com, houyupeng@ruc.edu.cn, chenyushuo@ruc.edu.cn, panxy@ruc.edu.cn """ recbole.data....
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/transform.py
null
null
null
null
null
null
Python
2026-05-04T02:01:24.110229
# -*- coding: utf-8 -*- # @Time : 2022/7/19 # @Author : Gaowei Zhang # @Email : zgw15630559577@163.com import math import numpy as np import random import torch from copy import deepcopy from recbole.data.interaction import Interaction, cat_interactions def construct_transform(config): """ Transformation ...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:01:24.141418
# @Time : 2020/7/21 # @Author : Yupeng Hou # @Email : houyupeng@ruc.edu.cn # UPDATE: # @Time : 2021/7/9, 2020/9/17, 2020/8/31, 2021/2/20, 2021/3/1, 2022/7/6 # @Author : Yupeng Hou, Yushuo Chen, Kaiyuan Li, Haoran Cheng, Jiawei Guan, Gaowei Zhang # @Email : houyupeng@ruc.edu.cn, chenyushuo@ruc.edu.cn, tsotfsk@out...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/dataset/dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:01:24.167860
# @Time : 2020/6/28 # @Author : Yupeng Hou # @Email : houyupeng@ruc.edu.cn # UPDATE: # @Time : 2022/7/8, 2021/12/18 2021/7/14 2021/7/1, 2020/11/10 # @Author : Zhen Tian, Yupeng Hou, Xingyu Pan, Yushuo Chen, Juyong Jiang # @Email : chenyuwuxinn@gmail.com, houyupeng@ruc.edu.cn, xy_pan@foxmail.com, chenyushuo@ruc.e...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/dataset/kg_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:01:25.345808
# @Time : 2020/9/3 # @Author : Yupeng Hou # @Email : houyupeng@ruc.edu.cn # UPDATE: # @Time : 2020/10/16, 2020/9/15, 2020/10/25, 2022/7/10 # @Author : Yupeng Hou, Xingyu Pan, Yushuo Chen, Lanling Xu # @Email : houyupeng@ruc.edu.cn, panxy@ruc.edu.cn, chenyushuo@ruc.edu.cn, xulanling_sherry@163.com """ recbole.da...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/dataset/sequential_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:01:25.423715
# @Time : 2020/9/16 # @Author : Yushuo Chen # @Email : chenyushuo@ruc.edu.cn # UPDATE: # @Time : 2022/7/8, 2020/9/16, 2021/7/1, 2021/7/11 # @Author : Zhen Tian, Yushuo Chen, Xingyu Pan, Yupeng Hou # @Email : chenyuwuxinn@gmail.com, chenyushuo@ruc.edu.cn, xy_pan@foxmail.com, houyupeng@ruc.edu.cn """ recbole.data...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/dataset/decisiontree_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:01:25.424909
# @Time : 2020/12/17 # @Author : Chen Yang # @Email : 254170321@qq.com """ recbole.data.decisiontree_dataset ########################## """ from recbole.data.dataset import Dataset from recbole.utils import FeatureType class DecisionTreeDataset(Dataset): """:class:`DecisionTreeDataset` is based on :class:`~r...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/data/dataset/kg_seq_dataset.py
null
null
null
null
null
null
Python
2026-05-04T02:01:25.453456
# @Time : 2020/9/23 # @Author : Xingyu Pan # @Email : panxingyu@ruc.edu.cn """ recbole.data.kg_seq_dataset ############################# """ from recbole.data.dataset import SequentialDataset, KnowledgeBasedDataset class KGSeqDataset(SequentialDataset, KnowledgeBasedDataset): """Containing both processing of...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/evaluator/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:01:25.536646
from recbole.evaluator.base_metric import * from recbole.evaluator.metrics import * from recbole.evaluator.evaluator import * from recbole.evaluator.register import * from recbole.evaluator.collector import *
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/evaluator/base_metric.py
null
null
null
null
null
null
Python
2026-05-04T02:01:25.783748
# @Time : 2020/10/21 # @Author : Kaiyuan Li # @email : tsotfsk@outlook.com # UPDATE # @Time : 2020/10/21, 2021/8/29 # @Author : Kaiyuan Li, Zhichao Feng # @email : tsotfsk@outlook.com, fzcbupt@gmail.com """ recbole.evaluator.abstract_metric ##################################### """ import torch from recbole.ut...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/evaluator/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:01:25.936899
# -*- encoding: utf-8 -*- # @Time : 2020/08/04 # @Author : Kaiyuan Li # @email : tsotfsk@outlook.com # UPDATE # @Time : 2020/09/28, 2020/08/09 # @Author : Kaiyuan Li, Zhichao Feng # @email : tsotfsk@outlook.com, fzcbupt@gmail.com """ recbole.evaluator.utils ################################ """...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:01:26.020459
from __future__ import absolute_import from __future__ import print_function from __future__ import division
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/abstract_recommender.py
null
null
null
null
null
null
Python
2026-05-04T02:01:26.051353
# @Time : 2020/6/25 # @Author : Shanlei Mu # @Email : slmu@ruc.edu.cn # UPDATE: # @Time : 2022/7/16, 2020/8/6, 2020/8/25, 2023/4/24 # @Author : Zhen Tian, Shanlei Mu, Yupeng Hou, Chenglong Ma # @Email : chenyuwuxinn@gmail.com, slmu@ruc.edu.cn, houyupeng@ruc.edu.cn, chenglong.m@outlook.com """ recbole.model.abst...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:01:26.099031
from recbole.model.context_aware_recommender.afm import AFM from recbole.model.context_aware_recommender.autoint import AutoInt from recbole.model.context_aware_recommender.dcn import DCN from recbole.model.context_aware_recommender.dcnv2 import DCNV2 from recbole.model.context_aware_recommender.deepfm import DeepFM fr...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/afm.py
null
null
null
null
null
null
Python
2026-05-04T02:01:26.133459
# -*- coding: utf-8 -*- # @Time : 2020/7/21 # @Author : Zihan Lin # @Email : linzihan.super@foxmail.com # @File : afm.py r""" AFM ################################################ Reference: Jun Xiao et al. "Attentional Factorization Machines: Learning the Weight of Feature Interactions via Attention Netwo...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/autoint.py
null
null
null
null
null
null
Python
2026-05-04T02:01:26.397138
# -*- coding: utf-8 -*- # @Time : 2020/09/01 # @Author : Shuqing Bian # @Email : shuqingbian@gmail.com # @File : autoint.py r""" AutoInt ################################################ Reference: Weiping Song et al. "AutoInt: Automatic Feature Interaction Learning via Self-Attentive Neural Networks" in C...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/dcn.py
null
null
null
null
null
null
Python
2026-05-04T02:01:26.560436
# _*_ coding: utf-8 _*_ # @Time : 2020/10/4 # @Author : Zhichao Feng # @Email : fzcbupt@gmail.com # UPDATE # @Time : 2020/10/21 # @Author : Zhichao Feng # @email : fzcbupt@gmail.com r""" DCN ################################################ Reference: Ruoxi Wang at al. "Deep & Cross Network for Ad Click Predic...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/dcnv2.py
null
null
null
null
null
null
Python
2026-05-04T02:01:26.640847
# _*_ coding: utf-8 _*_ # @Time : 2022/8/29 # @Author : Yifan Li # @Email : 295435096@qq.com r""" DCN V2 ################################################ Reference: Ruoxi Wang at al. "Dcn v2: Improved deep & cross network and practical lessons for web-scale learning to rank systems." in WWW 2021. Reference...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/deepfm.py
null
null
null
null
null
null
Python
2026-05-04T02:01:26.671618
# -*- coding: utf-8 -*- # @Time : 2020/7/8 # @Author : Shanlei Mu # @Email : slmu@ruc.edu.cn # @File : deepfm.py # UPDATE: # @Time : 2020/8/14 # @Author : Zihan Lin # @Email : linzihan.super@foxmain.com r""" DeepFM ################################################ Reference: Huifeng Guo et al. "DeepFM: A F...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/dssm.py
null
null
null
null
null
null
Python
2026-05-04T02:01:26.690750
# -*- coding: utf-8 -*- # @Time : 2020/9/2 # @Author : Yingqian Min # @Email : gmqszyq@qq.com # @File : dssm.py """ DSSM ################################################ Reference: PS Huang et al. "Learning Deep Structured Semantic Models for Web Search using Clickthrough Data" in CIKM 2013. """ import torch...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/eulernet.py
null
null
null
null
null
null
Python
2026-05-04T02:01:26.740678
# -*- coding: utf-8 -*- # @Time : 2023/4/21 12:00 # @Author : Zhen Tian # @Email : chenyuwuxinn@gmail.com # @File : eulernet.py r""" EulerNet ################################################ Reference: Zhen Tian et al. "EulerNet: Adaptive Feature Interaction Learning via Euler's Formula for CTR Prediction." i...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/ffm.py
null
null
null
null
null
null
Python
2026-05-04T02:01:27.013800
# -*- coding: utf-8 -*- # @Time : 2020/10/04 # @Author : Xinyan Fan # @Email : xinyan.fan@ruc.edu.cn # @File : ffm.py # UPDATE: # @Time : 2022/7/16 # @Author : Zhen Tian # @Email : chenyuwuxinn@gmail.com r""" FFM ##################################################### Reference: Yuchin Juan et al. "Field-aw...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/fignn.py
null
null
null
null
null
null
Python
2026-05-04T02:01:27.144106
# -*- coding: utf-8 -*- # @Time : 2022/10/27 # @Author : Yuyan Zhang # @Email : 2019308160102@cau.edu.cn # @File : fignn.py r""" FiGNN ################################################ Reference: Li, Zekun, et al. "Fi-GNN: Modeling Feature Interactions via Graph Neural Networks for CTR Prediction" ...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/fm.py
null
null
null
null
null
null
Python
2026-05-04T02:01:27.225456
# -*- coding: utf-8 -*- # @Time : 2020/7/8 10:09 # @Author : Shanlei Mu # @Email : slmu@ruc.edu.cn # @File : fm.py # UPDATE: # @Time : 2020/8/13, # @Author : Zihan Lin # @Email : linzihan.super@foxmain.com r""" FM ################################################ Reference: Steffen Rendle et al. "Factoriza...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/fnn.py
null
null
null
null
null
null
Python
2026-05-04T02:01:27.274416
# -*- coding: utf-8 -*- # @Time : 2020/9/15 10:57 # @Author : Zihan Lin # @Email : linzihan.super@foxmail.com # @File : fnn.py r""" FNN ################################################ Reference: Weinan Zhang1 et al. "Deep Learning over Multi-field Categorical Data" in ECIR 2016 """ import torch.nn as nn fro...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/fwfm.py
null
null
null
null
null
null
Python
2026-05-04T02:01:27.281894
# -*- coding: utf-8 -*- # @Time : 2020/10/06 # @Author : Xinyan Fan # @Email : xinyan.fan@ruc.edu.cn # @File : fwfm.py r""" FwFM ##################################################### Reference: Junwei Pan et al. "Field-weighted Factorization Machines for Click-Through Rate Prediction in Display Advertising." ...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/kd_dagfm.py
null
null
null
null
null
null
Python
2026-05-04T02:01:27.338217
# _*_ coding: utf-8 _*_ # @Time : 2023/1/20 # @Author : Wanli Yang # @Email : 2013774@mail.nankai.edu.cn r""" KD_DAGFM ################################################ Reference: Zhen Tian et al. "Directed Acyclic Graph Factorization Machines for CTR Prediction via Knowledge Distillation." in WSDM...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/lr.py
null
null
null
null
null
null
Python
2026-05-04T02:01:27.660216
# -*- coding: utf-8 -*- # @Time : 2020/08/30 # @Author : Xinyan Fan # @Email : xinyan.fan@ruc.edu.cn # @File : lr.py r""" LR ##################################################### Reference: Matthew Richardson et al. "Predicting Clicks Estimating the Click-Through Rate for New Ads." in WWW 2007. """ import to...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/nfm.py
null
null
null
null
null
null
Python
2026-05-04T02:01:27.722001
# -*- coding: utf-8 -*- # @Time : 2020/7/14 # @Author : Zihan Lin # @Email : linzihan.super@foxmail.com # @File : nfm.py r""" NFM ################################################ Reference: He X, Chua T S. "Neural factorization machines for sparse predictive analytics" in SIGIR 2017 """ import torch.nn as nn...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/pnn.py
null
null
null
null
null
null
Python
2026-05-04T02:01:27.867276
# -*- coding: utf-8 -*- # @Time : 2020/9/22 10:57 # @Author : Zihan Lin # @Email : zhlin@ruc.edu.cn # @File : pnn.py r""" PNN ################################################ Reference: Qu Y et al. "Product-based neural networks for user response prediction." in ICDM 2016 Reference code: - https://github...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/widedeep.py
null
null
null
null
null
null
Python
2026-05-04T02:01:27.876719
# -*- coding: utf-8 -*- # @Time : 2020/08/30 # @Author : Xinyan Fan # @Email : xinyan.fan@ruc.edu.cn # @File : widedeep.py r""" WideDeep ##################################################### Reference: Heng-Tze Cheng et al. "Wide & Deep Learning for Recommender Systems." in RecSys 2016. """ import torch.nn a...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/context_aware_recommender/xdeepfm.py
null
null
null
null
null
null
Python
2026-05-04T02:01:27.911281
# _*_ coding: utf-8 _*_ # @Time : 2020/10/13 # @Author : Zhichao Feng # @Email : fzcbupt@gmail.com # UPDATE # @Time : 2020/10/21 # @Author : Zhichao Feng # @email : fzcbupt@gmail.com r""" xDeepFM ################################################ Reference: Jianxun Lian at al. "xDeepFM: Combining Explicit and I...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/exlib_recommender/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:01:27.931929
from recbole.model.exlib_recommender.lightgbm import LightGBM from recbole.model.exlib_recommender.xgboost import XGBoost
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/model/exlib_recommender/lightgbm.py
null
null
null
null
null
null
Python
2026-05-04T02:01:28.363133
# -*- coding: utf-8 -*- # @Time : 2020/1/17 # @Author : Chen Yang # @Email : 254170321@qq.com r""" recbole.model.exlib_recommender.lightgbm ########################################## """ import lightgbm as lgb from recbole.utils import ModelType, InputType class LightGBM(lgb.Booster): r"""LightGBM is inherit...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/evaluator/evaluator.py
null
null
null
null
null
null
Python
2026-05-04T02:01:29.729651
# -*- encoding: utf-8 -*- # @Time : 2021/6/25 # @Author : Zhichao Feng # @email : fzcbupt@gmail.com """ recbole.evaluator.evaluator ##################################### """ from recbole.evaluator.register import metrics_dict from recbole.evaluator.collector import DataStruct from collections import Order...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/evaluator/collector.py
null
null
null
null
null
null
Python
2026-05-04T02:01:29.774311
# @Time : 2021/6/23 # @Author : Zihan Lin # @Email : zhlin@ruc.edu.cn # UPDATE # @Time : 2021/7/18 # @Author : Zhichao Feng # @email : fzcbupt@gmail.com """ recbole.evaluator.collector ################################################ """ from recbole.evaluator.register import Register import torch import copy ...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/evaluator/metrics.py
null
null
null
null
null
null
Python
2026-05-04T02:01:29.793982
# -*- encoding: utf-8 -*- # @Time : 2020/08/04 # @Author : Kaiyuan Li # @email : tsotfsk@outlook.com # UPDATE # @Time : 2020/08/12, 2021/8/29, 2020/9/16, 2021/7/2 # @Author : Kaiyuan Li, Zhichao Feng, Xingyu Pan, Zihan Lin # @email : tsotfsk@outlook.com, fzcbupt@gmail.com, panxy@ruc.edu.cn, zhl...
RUCAIBox/RecBole
https://github.com/RUCAIBox/RecBole
null
null
null
null
4,414
null
null
mit
null
null
null
null
null
null
null
recbole/evaluator/register.py
null
null
null
null
null
null
Python
2026-05-04T02:01:29.885323
# @Time : 2021/6/23 # @Author : Zihan Lin # @Email : zhlin@ruc.edu.cn # UPDATE # @Time : 2021/8/29 # @Author : Zhichao Feng # @email : fzcbupt@gmail.com """ recbole.evaluator.register ################################################ """ import inspect import sys def cluster_info(module_name): """Collect i...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:01:32.740342
from ultravox.data.aug import * # noqa: F403 from ultravox.data.data_sample import * # noqa: F403 from ultravox.data.datasets import * # noqa: F403 from ultravox.data.registry import * # noqa: F403 from ultravox.data.types import * # noqa: F403 __all__ = [ # noqa: F405 "SizedIterableDataset", "EmptyDatas...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/aug/gain.py
null
null
null
null
null
null
Python
2026-05-04T02:01:32.892989
import numpy as np from .base import Augmentation from .config import AugmentationArgs from .config import AugmentationConfig from .registry import AugRegistry @AugRegistry.register_type("gain") class Gain(Augmentation): def __init__( self, args: AugmentationArgs, gain_db: float = 0.0, ...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/assets/tiny_ultravox/ultravox_model.py
null
null
null
null
null
null
Python
2026-05-04T02:01:33.004684
version https://git-lfs.github.com/spec/v1 oid sha256:42dee1057ada3b9623e47504403b315f9cf38e989234ef3ac742c102b1dd106f size 35474
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/aug/base.py
null
null
null
null
null
null
Python
2026-05-04T02:01:33.022523
import random from typing import List, Optional, overload import numpy as np from ultravox.data.data_sample import VoiceSample from .config import AugmentationArgs class Augmentation: def __init__( self, args: AugmentationArgs, children: Optional[List["Augmentation"]] = None, ): ...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/assets/tiny_ultravox/ultravox_config.py
null
null
null
null
null
null
Python
2026-05-04T02:01:33.053057
version https://git-lfs.github.com/spec/v1 oid sha256:0630d9cd966c241b7addd7ba29999d682427dc2a53aaadee80b2f08b5cca5117 size 6985
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/aug/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:01:33.054226
from ultravox.data.aug.base import Augmentation from ultravox.data.aug.config import AugmentationArgs from ultravox.data.aug.config import AugmentationConfig from ultravox.data.aug.registry import AugRegistry # Need to import all augmentation modules to register them in the registry from ultravox.data.aug.gain import ...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/aug/filter.py
null
null
null
null
null
null
Python
2026-05-04T02:01:33.167777
import numpy as np import scipy.signal as signal from .base import Augmentation from .config import AugmentationArgs from .config import AugmentationConfig from .registry import AugRegistry @AugRegistry.register_type("bandpass_filter") class BandpassFilter(Augmentation): def __init__( self, args:...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/aug/noise.py
null
null
null
null
null
null
Python
2026-05-04T02:01:33.355630
import numpy as np from .base import Augmentation from .config import AugmentationArgs from .config import AugmentationConfig from .registry import AugRegistry @AugRegistry.register_type("colored_noise") class ColoredNoise(Augmentation): def __init__( self, args: AugmentationArgs, noise_type: str = "whit...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/aug/registry.py
null
null
null
null
null
null
Python
2026-05-04T02:01:33.466135
import logging from copy import deepcopy from typing import Any, Dict, List, Optional, Type, Union from .base import Augmentation from .config import AugmentationArgs from .config import AugmentationConfig class AugRegistry: """ Combined registry for augmentation types and configs. This class keeps trac...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/aug/resampling.py
null
null
null
null
null
null
Python
2026-05-04T02:01:33.595246
import librosa import numpy as np from .base import Augmentation from .config import AugmentationArgs from .config import AugmentationConfig from .registry import AugRegistry @AugRegistry.register_type("resampling") class Resampling(Augmentation): def __init__( self, args: AugmentationArgs, ...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/aug/test_augs.py
null
null
null
null
null
null
Python
2026-05-04T02:01:33.598094
import platform import numpy as np import pytest from ultravox.data.aug import AugRegistry @pytest.mark.parametrize("gain_db", [10, -10]) def test_gain(gain_db): augmentation_config = AugRegistry.get_config("gain", {"gain_db": gain_db}) augmentation = AugRegistry.create_augmentation(augmentation_config) ...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/audiobench.py
null
null
null
null
null
null
Python
2026-05-04T02:01:33.654848
from ultravox.data import types INSTRUCTION_MQA_USER_TEMPLATE = ( f"{types.AUDIO_PLACEHOLDER} \n\n{{{{instruction}}}} \n\n{{{{choices}}}}" ) INSTRUCTION_USER_TEMPLATE = f"{types.AUDIO_PLACEHOLDER} \n\n{{{{instruction}}}}" # English only AB_CN_COLLEGE_LISTEN_MCQ_CONFIG = types.DatasetConfig( name="audiobench-c...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/ami.py
null
null
null
null
null
null
Python
2026-05-04T02:01:33.666626
from ultravox.data import types AMI_BASE_CONFIG = types.DatasetConfig( name="ami", path="edinburghcstr/ami", transcript_template="{{text}}", assistant_template="{{text}}", user_template_args={"transcript_language": "English"}, ) AMI_IHM_CONFIG = types.DatasetConfig( name="ami-ihm", base="a...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/bigbenchaudio.py
null
null
null
null
null
null
Python
2026-05-04T02:01:33.726286
from ultravox.data import types # English only BBA_BASE_CONFIG = types.DatasetConfig( name="bigbenchaudio", path="fixie-ai/big_bench_audio", splits=[ types.DatasetSplitConfig( name="train", num_samples=1000, split=types.DatasetSplit.TEST ), ], eval_config=types.EvalConfi...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/boolq.py
null
null
null
null
null
null
Python
2026-05-04T02:01:33.747158
from ultravox.data import types BOOLQ_CONFIG = types.DatasetConfig( name="boolq", path="fixie-ai/boolq-audio", splits=[ types.DatasetSplitConfig(name="train", num_samples=10000), types.DatasetSplitConfig(name="validation", num_samples=1000), ], user_template=f"{{{{passage}}}}\n\n{ty...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/aug/config.py
null
null
null
null
null
null
Python
2026-05-04T02:01:33.954801
import dataclasses from typing import Any, Dict, List, Optional from simple_parsing import helpers from ultravox.data.data_sample import SAMPLE_RATE @dataclasses.dataclass class AugmentationArgs: p: float = 1.0 sample_rate: int = SAMPLE_RATE def to_dict(self) -> Dict[str, Any]: return { ...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/commonvoice.py
null
null
null
null
null
null
Python
2026-05-04T02:01:33.956200
from ultravox.data import types # "Other" is the split that has not yet been reviewed to be validated/invalidated # "Validated" split is a superset of "train, test, validation." # We include the "validation" split from some low-resource languages for training. # In the future, we will create new training splits from t...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/covost2.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.069177
from ultravox.data import types CVST_BASE_CONFIG = types.DatasetConfig( name="covost2", path="fixie-ai/covost2", user_template=types.TRANSLATION_USER_TEMPLATE, transcript_template="{{sentence}}", assistant_template="{{translation}}", eval_config=types.EvalConfig(metric="bleu"), ) CVST_AR_EN_CO...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/aug/compression.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.104858
import audioop import platform import subprocess import tempfile from typing import Optional import numpy as np import soundfile as sf from .base import Augmentation from .config import AugmentationArgs from .config import AugmentationConfig from .registry import AugRegistry @AugRegistry.register_type("ffmpeg_compr...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/gigaspeech.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.182350
from ultravox.data import types GS_XL_CONFIG = types.DatasetConfig( name="gigaspeech-xl", path="fixie-ai/gigaspeech", subset="xl-empty-audio-removed", splits=[ types.DatasetSplitConfig(name="train", num_samples=8_266_422), ], transcript_template="{{text_proc.format_asr_text(text)}}", ...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/fleurs.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.264553
from ultravox.data import types # 1) Base FLEURS config FLEURS_BASE_CONFIG = types.DatasetConfig( name="fleurs", path="google/fleurs", transcript_template="{{transcription}}", assistant_template="{{transcription}}", ) # The following languages needs special normalization (english vs languages that are...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/kathbath.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.265835
from ultravox.data import types # Base config for Kathbath dataset KATHBATH_BASE_CONFIG = types.DatasetConfig( name="kathbath", path="fixie-ai/Kathbath", # audio_field="audio_filepath", transcript_template="{{text}}", ) # Bengali KATHBATH_BN_CONFIG = types.DatasetConfig( name="kathbath-bn", ba...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/indicvoices.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.270960
from ultravox.data import types # Base config for IndicVoices dataset INDICVOICES_BASE_CONFIG = types.DatasetConfig( name="indicvoices", path="fixie-ai/IndicVoices_a", # audio_field="audio_filepath", transcript_template="{{text}}", ) # Assamese INDICVOICES_AS_CONFIG = types.DatasetConfig( name="in...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/librispeech.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.312771
from ultravox.data import types LS_BASE_CONFIG = types.DatasetConfig( name="librispeech", path="fixie-ai/librispeech_asr", transcript_template="{{text_proc.format_asr_text(text)}}", assistant_template="{{text_proc.format_asr_text(text)}}", user_template_args={"transcript_language": "English"}, ) L...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/multilingual_librispeech.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.354977
from ultravox.data import types ML_BASE_CONFIG = types.DatasetConfig( name="multilingual_librispeech", path="fixie-ai/multilingual_librispeech", transcript_template="{{transcript}}", assistant_template="{{transcript}}", ) ML_NL_CONFIG = types.DatasetConfig( name="multilingual_librispeech-nl", ...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/musan.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.513860
from ultravox.data import types # Configuration for the Musan dataset - a collection of audio samples for noise, music, and speech MUSAN_CONFIG = types.DatasetConfig( name="musan", path="fixie-ai/musan-segments-v2", # Replace with actual HF path if different subset="no_speech", splits=[ types....
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/peoplespeech.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.574505
from ultravox.data import types PS_BASE_CONFIG = types.DatasetConfig( name="peoplespeech", path="fixie-ai/peoples_speech", subset="clean", splits=[ types.DatasetSplitConfig(name="train", num_samples=1_501_271), types.DatasetSplitConfig( name="test", num_samples=34_898, split...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/seamlessalign.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.615092
from ultravox.data import types # Base config for SeamlessAlign dataset SEAMLESS_BASE_CONFIG = types.DatasetConfig( name="seamless", path="fixie-ai/SeamlessAlign", subset="indic2en", # audio_field="audio_filepath", transcript_template="{{transcription}}", ) # Hindi SEAMLESS_HI_CONFIG = types.Datas...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/shrutilipi.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.682577
from ultravox.data import types # Base config for Shrutilipi dataset SHRUTILIPI_BASE_CONFIG = types.DatasetConfig( name="shrutilipi", path="fixie-ai/Shrutilipi_a", # audio_field="audio_filepath", transcript_template="{{text}}", ) # Assamese SHRUTILIPI_AS_CONFIG = types.DatasetConfig( name="shrutil...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/voicebench.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.759987
from ultravox.data import types SYSTEM_PROMPT = """ You are a friendly and helpful character. You love to answer questions for people. """ DUMMY_ASSISTANT_TEMPLATE = "I'm sorry, I don't know the answer to that question." # Datasets with reference answers (use yes/no evaluation) VB_BBH_CONFIG = types.DatasetConfig( ...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/wenetspeech.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.840545
from ultravox.data import types WS_BASE_CONFIG = types.DatasetConfig( name="wenetspeech", path="fixie-ai/wenetspeech", subset="L_fixed", splits=[types.DatasetSplitConfig(name="train", num_samples=14_621_415)], transcript_template="{{text}}", user_template_args={"transcript_language": "Chinese"}...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/configs/voxpopuli.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.862557
from ultravox.data import types VP_EN_CONFIG = types.DatasetConfig( name="voxpopuli-en", path="facebook/voxpopuli", subset="en", splits=[ types.DatasetSplitConfig(name="train", num_samples=1_000_000), types.DatasetSplitConfig(name="validation", num_samples=10_000), ], assistant_...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/data_sample.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.864155
import base64 import dataclasses import io from typing import Any, Dict, List, Optional import librosa import numpy as np import soundfile as sf from numpy import typing as npt SAMPLE_RATE = 16000 def audio_from_file(path: str) -> np.ndarray: """Load audio from a file, converting to float32 PCM @ 16 kHz.""" ...
fixie-ai/ultravox
https://github.com/fixie-ai/ultravox
null
null
null
null
4,412
null
null
mit
null
null
null
null
null
null
null
ultravox/data/data_sample_test.py
null
null
null
null
null
null
Python
2026-05-04T02:01:34.894536
from typing import Union import numpy as np import pytest from ultravox.data import data_sample def _create_sine_wave( freq: int = 440, duration: float = 1.0, sample_rate: int = 16000, amplitude: float = 0.1, target_dtype: str = "float32", ) -> Union[ np.typing.NDArray[np.float32], np.ty...