Skip to content

Instantly share code, notes, and snippets.

View rbiswasfc's full-sized avatar

Raja Biswas rbiswasfc

View GitHub Profile
@rbiswasfc
rbiswasfc / 28_cot_input_prep.ipynb
Last active December 25, 2024 17:20
Prep for CoT Generation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rbiswasfc
rbiswasfc / 16_group_generation.ipynb
Created December 14, 2024 00:16
clustering - eedi
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rbiswasfc
rbiswasfc / 05_jina_v3_lora_embed.ipynb
Created October 14, 2024 15:47
05_jina_v3_lora_embed.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rbiswasfc
rbiswasfc / 06_refactoring_example.ipynb
Created October 2, 2024 05:02
refactoring using aimagic
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rbiswasfc
rbiswasfc / claudette.md
Created October 2, 2024 04:52
claudette core

AUTOGENERATED! DO NOT EDIT! File to edit: ../00_core.ipynb.

%% auto 0

all = ['empty', 'model_types', 'all_models', 'models', 'models_aws', 'models_goog', 'pricing', 'find_block', 'contents', 'usage', 'mk_msgs', 'Client', 'mk_tool_choice', 'call_func', 'mk_funcres', 'mk_toolres', 'Chat', 'img_msg', 'text_msg', 'mk_msg']

%% ../00_core.ipynb

import inspect, typing, mimetypes, base64, json from collections import abc

@rbiswasfc
rbiswasfc / environment.yaml
Created September 30, 2024 07:18
environment
name: nbdev
channels:
- pytorch
- fastai
- huggingface
- conda-forge
- defaults
dependencies:
- python=3.10
- pandas
@rbiswasfc
rbiswasfc / minimal_hf.py
Created September 27, 2024 11:53
fasthtml oauth huggingface
from fasthtml.common import *
from fasthtml.oauth import HuggingFaceClient, redir_url
# Auth client
client = HuggingFaceClient(os.getenv("HF_CLIENT_ID"), os.getenv("HF_API_SECRET"))
app = FastHTML()
redir_path = "/auth/callback"
@rbiswasfc
rbiswasfc / 05_zotero_search_improvements.ipynb
Last active September 30, 2024 08:14
05_zotero_search_improvements.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rbiswasfc
rbiswasfc / 00_core.ipynb
Created September 23, 2024 13:32
minai_finetuning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rbiswasfc
rbiswasfc / hf_hub
Last active September 20, 2024 02:02
HF Hub (v0.25.0)
# concepts/git_vs_http.md
<!--⚠️ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be
rendered properly in your Markdown viewer.
-->
# Git vs HTTP paradigm
The `huggingface_hub` library is a library for interacting with the Hugging Face Hub, which is a
collections of git-based repositories (models, datasets or Spaces). There are two main