Skip to content

Instantly share code, notes, and snippets.

@philschmid
philschmid / get_memory_size.py
Created January 16, 2025 13:53
Get needed GPU per precision for a Hugging Face Model Id
from typing import Dict, Union
from huggingface_hub import get_safetensors_metadata
import argparse
import sys
# Example:
# python get_gpu_memory.py Qwen/Qwen2.5-7B-Instruct
# Dictionary mapping dtype strings to their byte sizes
bytes_per_dtype: Dict[str, float] = {

A tutorial on fine-tuning DeepSeek R1 for medical applications and integrating DSPy for reinforcement learning.

This tutorial will be structured for AI/ML engineers and medical professionals, covering:

  • Introduction: Overview of DeepSeek R1 and DSPy in medical AI.
  • Features & Benefits: Key advantages of this approach.
  • Warnings & Considerations: Potential risks and limitations.
  • Installation & Setup: Environment configuration and dependencies.
  • Dataset Preparation: Selecting and formatting medical datasets.
  • Fine-tuning DeepSeek R1: Using LoRA with Unsloth for efficient training.
@ih2502mk
ih2502mk / list.md
Last active February 13, 2025 23:41
Quantopian Lectures Saved
@msrivastav13
msrivastav13 / salesforce_prompt_builder_pocket_guide_for_apex_developers.md
Last active February 13, 2025 23:40
codeLive: A Deep Dive into Apex for Prompt Builder

What is Prompt Builder?

Prompt Builder from Salesforce is a powerful tool that enables organizations to add generative AI capabilities to their business application. It allows organizations to create and manage prompt templates.

What is Prompt Builder?

Prompts

Sets of questions or instructions provided to a large language model to generate relevant content. To learn more complete the trailhead module below

@allquixotic
allquixotic / README.md
Last active February 13, 2025 23:30
High Quality Pitch Shifting for Spotify on Windows using MSYS-MinGW64

The goal of this exercise is to get pitch shifting (changing the pitch of music up or down) working with Spotify on Windows 10 using native-compiled open source software. This solution does not require any VMs or Linux at all.

For this solution, the actual sound playback will be occurring on your Windows PC using your soundcard, but there are other components of the solution that do some audio processing. I'll explain each.

Requirements

  1. A Spotify Premium account
  2. The 64-bit build of MSYS2 from https://www.msys2.org/ -- get the default installer and install with default options.

Overview of the Working Solution

@TCB13
TCB13 / BabelEdit-Millennium-Trial.txt
Last active February 13, 2025 23:22
Activate BabelEdit temporarily / Unlimited trial
# BabelEdit Millennium Trial
Obviously for educative purposes only.
Furthermore, this DOESN'T activate BabelEdit permanently.
If you like the software, buy it, the devs deserve it.
1. Add to hosts file:
127.0.0.1 secure.codeandweb.com
@nay-cat
nay-cat / removeads_anydesk.bat
Last active February 13, 2025 23:25
removes advertisements and has a some version check
@echo off
setlocal enabledelayedexpansion
:: place this script in the same folder as AnyDesk.exe and use it to open AnyDesk instead of directly hitting AnyDesk.
:: removes advertisements and has a shitty version check (nobody uses such old versions of anydesk lol)
cd /d "%~dp0"
set "SAVE_FILE=%APPDATA%\anydesk_path_save.txt"
set "DEFAULT_PATH=%APPDATA%\AnyDesk"
index.html
robots.txt
favicon.ico
Makefile
.gitignore
404.html
index.js
README.md
500.html
422.html
@ChristopherA
ChristopherA / ssh-keys-best-practices.md
Last active February 13, 2025 23:18
SSH Keys - Best Practices

SSH Keys Best Practices

(VERY rought draft, still a work-in-progress)

SSH Key Seperation

Authentication and signing keys serve different purposes, especially on platforms like GitHub where code integrity and access control are crucial. Here's a comparison based on their functions and best practices:

Authentication Keys:

  1. Purpose:
@roachhd
roachhd / README.md
Created December 8, 2014 23:09
Games on GitHub

Games on GitHub

Below is a list of open source games and game-related projects that can be found on GitHub - old school text adventures, educational games, 8-bit platform games, browser-based games, indie games, GameJam projects, add-ons/maps/hacks/plugins for commercial games, libraries, frameworks, engines, you name it.

Contributing

If you'd like to add a repository to the list, please create an Issue, or fork this repository and submit a pull request.

Help: MarkDown Help, Markdown Cheatsheet