Skip to content

Instantly share code, notes, and snippets.

View manniru's full-sized avatar

MUHAMMAD MANNIR AHMAD manniru

View GitHub Profile
@manniru
manniru / udpserver.py
Created November 19, 2024 09:25 — forked from umer0586/udpserver.py
A simple UDP server in python
import socket
import threading
class UDPServer:
def __init__(self,address,buffer_size = 1024):
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.address = address
self.buffer_size = buffer_size
@manniru
manniru / rotate.py
Created November 19, 2024 09:25 — forked from umer0586/rotate.py
import json
import bpy
import signal
import socket
import threading
# Global variable to store the latest quaternion data
latest_quaternion_data = None
server_running = False
import json
import bpy
import signal
import socket
import threading
# Global variable to store the latest quaternion data
latest_quaternion_data = None
server_running = False
@sayakpaul
sayakpaul / run_flux_with_limited_resources.md
Last active February 23, 2025 07:10
This document enlists resources that show how to run Black Forest Lab's Flux with Diffusers under limited resources.
@kenzic
kenzic / window.ai.html
Last active January 12, 2025 20:36
Playground to demo window.ai
<html>
<head>
<meta charset="utf-8">
<title>window.ai playground: Updated 9/3/204</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="ui">
@glowinthedark
glowinthedark / nllb200_translate.py
Last active March 7, 2025 03:15
Text translation with facebook/nllb-200-3.3B model
#!/usr/bin/env python3
# Dependencies
# =============================
# pip install nltk transformers
import argparse
import sys
from pathlib import Path
@shashankdeshpande
shashankdeshpande / README.md
Created July 21, 2023 11:55
Run Llama-2 on your local machine's CPU

Create environment

conda create -n llama2 python=3.9 
conda activate llama2

Install required libraries

# langchain
pip install langchain
@adrienbrault
adrienbrault / llama2-mac-gpu.sh
Last active April 8, 2025 13:49
Run Llama-2-13B-chat locally on your M1/M2 Mac with GPU inference. Uses 10GB RAM. UPDATE: see https://twitter.com/simonw/status/1691495807319674880?s=20
# Clone llama.cpp
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
# Build it
make clean
LLAMA_METAL=1 make
# Download model
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin
@younesbelkada
younesbelkada / finetune_llama_v2.py
Last active April 7, 2025 18:27
Fine tune Llama v2 models on Guanaco Dataset
# coding=utf-8
# Copyright 2023 The HuggingFace Inc. team. 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
@BillRaymond
BillRaymond / README.md
Last active January 18, 2025 02:33
Run AUTOMATIC1111's Stable Diffusion Web UI in Docker and VSC on Mac M-series chips

Run AUTOMATIC1111's Stable Diffusion Web UI on a Mac M1 using Docker and Visual Studio Code

👉 This is for testing purposes. It is using Docker. It will be slow and may crash. I suggest you read the FAQ and Docker Pre-requisites sections before jumping into this.

Stable Diffusion Prompt: A beautifully colored cat sitting in the clouds with a rainbow in the background, in the style of Andy Warhol

Like this?