Skip to content

Instantly share code, notes, and snippets.

View ysdede's full-sized avatar
🎯
Focusing

Yunus Seyhan Dede ysdede

🎯
Focusing
View GitHub Profile
@seastar105
seastar105 / evaluate.py
Last active March 6, 2025 16:57
Phi-4-multimodal-korean-finetuning
from datasets import load_dataset
import torch
import sacrebleu
import json
from transformers import AutoModelForCausalLM, AutoProcessor, GenerationConfig
import soundfile as sf
from jiwer import cer
from whisper_normalizer.basic import BasicTextNormalizer
from tqdm.auto import tqdm
import re
@rcland12
rcland12 / yolo_classes.json
Created July 14, 2023 04:08
A list of all 80 YOLO classes and its index in JSON format.
{
"class": {
"0": "person",
"1": "bicycle",
"2": "car",
"3": "motorcycle",
"4": "airplane",
"5": "bus",
"6": "train",
"7": "truck",
@ohyicong
ohyicong / areadme.md
Last active October 13, 2024 19:26
LSTM Auto-Complete Model

LSTM auto complete model

Train your own auto-complete model on the web with Tensorflow.js

OS support

  1. Chrome Web browser

Usage

  1. Download predicts.html
  2. Upload dataset.txt
@hantoine
hantoine / download_and_unzip.py
Last active October 27, 2024 04:10
Download and extract a ZIP file in Python
from urllib.request import urlopen
from io import BytesIO
from zipfile import ZipFile
def download_and_unzip(url, extract_to='.'):
http_response = urlopen(url)
zipfile = ZipFile(BytesIO(http_response.read()))
zipfile.extractall(path=extract_to)
@mikaelhg
mikaelhg / cuda-install.md
Last active May 21, 2024 07:48
Proper CUDA and cuDNN installation
date title tags
2020-02-29
Proper CUDA and cuDNN installation
tech

You're here, so you're probably already hurting because of CUDA and cuDNN compatibility, and I won't have to motivate you, or explain why you'd want to have standalone CUDA and cuDNN installations, if you're going to develop using Tensorflow in the long term.

1. Download your CUDA runfile (local) packages

@aditya-malte
aditya-malte / smallberta_pretraining.ipynb
Created February 22, 2020 13:41
smallBERTa_Pretraining.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alankbi
alankbi / detecto_demo_8.py
Created February 14, 2020 17:39
Save and load models from files with Detecto
model.save('model_weights.pth')
# ... Later ...
model = core.Model.load('model_weights.pth', ['alien', 'bat', 'witch'])
@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution.md
Last active May 12, 2025 10:36
Fix DNS resolution in WSL2

Permanent WSL DNS Fix (WSL 2.2.1+)

If you're encountering ping github.com failing inside WSL with a Temporary failure in name resolution, you're not alone — this has been a long-standing issue, especially when using VPNs or corporate networks.

This issue is now fixed robustly with DNS tunneling, which preserves dynamic DNS behavior and avoids limitations like WSL’s former hard cap of 3 DNS servers in /etc/resolv.conf.

DNS tunneling is enabled by default in WSL version 2.2.1 and later, meaning that if you're still seeing DNS resolution issues, the first and most effective fix is simply to upgrade WSL. Upgrading WSL updates the WSL platform itself, but does not affect your installed Linux distributions, apps, or files.

To upgrade WSL, follow these steps,

@kirinelf
kirinelf / clock.html
Last active May 8, 2025 04:36 — forked from sam0737/clock.html
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >
@sagnitude
sagnitude / nvidia.md
Last active January 21, 2024 11:40 — forked from cavinsmith/nvidia.md
Nvidia GPUs sorted by CUDA cores

List of desktop Nvidia GPUS ordered by CUDA core count

I created it for those who use Neural Style

Guys, please add your hardware setups, neural-style configs and results in comments!

GPU CUDA cores Memory Processor frequency Memory Bandwidth (GB/sec)
Geforce GTX TITAN Z 5760 12 GB 705 / 876 673