Skip to content

Instantly share code, notes, and snippets.

View titu1994's full-sized avatar

Somshubra Majumdar titu1994

View GitHub Profile
import google.genai as genai
# Correct import for genai types
from google.genai import types as genai_types
from google.genai.errors import APIError
from google.api_core import exceptions as api_core_exceptions
from httpx import ReadTimeout
import time
import os
import json
import logging
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@titu1994
titu1994 / notebook.ipynb
Last active November 7, 2022 03:36
NeMo Conformer Transducer on MCV Hindi
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@titu1994
titu1994 / mermaid.js
Last active May 10, 2022 22:24
Mermaid diagram - Adapters
graph TD
A[Input] --> LN(Layer Norm)
LN --> FF1("Bottleneck FeedForward - (D -> H; D >> H)")
FF1 --> Activation[ReLU]
Activation --> FF2("Expansion FeedForward - (H -> D; D >> H)")
FF2 --> Output[Output]
A --> |Residual| Output
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
import numba
from typing import List, Tuple
W_INS = 2
W_INS_NON = 0
W_DEL = 2
W_DEL_NON = 0
W_SUB = 1
W_MATCH = -2
@titu1994
titu1994 / long-audio-transcription-citrinet.ipynb
Last active May 6, 2021 22:29
Long-audio-transcription-Citrinet.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@titu1994
titu1994 / finetune_model.py
Created April 28, 2021 01:41
Finetuning recipe for Citrinet models
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.