Skip to content

Instantly share code, notes, and snippets.

View rbiswasfc's full-sized avatar

Raja Biswas rbiswasfc

View GitHub Profile
@rbiswasfc
rbiswasfc / docs.md
Created February 15, 2025 11:49
SGLang 0.4.3

File: README.md

SGLang Documentation

We recommend new contributors start from writing documentation, which helps you quickly understand SGLang codebase. Most documentation files are located under the docs/ folder. We prefer Jupyter Notebooks over Markdown so that all examples can be executed and validated by our docs CI pipeline.

Docs Workflow

Install Dependency

@rbiswasfc
rbiswasfc / vllm.md
Last active February 15, 2025 04:36
vLLM Docs

README.md

vLLM documents

Build the docs

# Install dependencies.
pip install -r requirements-docs.txt
@rbiswasfc
rbiswasfc / docs.md
Created January 20, 2025 02:25
OpenRouter

Quick Start

OpenRouter provides an OpenAI-compatible completion API to 0 models & providers that you can call directly, or using the OpenAI SDK. Additionally, some third-party SDKs are available.

In the examples below, the OpenRouter-specific headers are optional. Setting them allows your app to appear on the OpenRouter leaderboards.

Using the OpenAI SDK

from openai import OpenAI
@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"