Skip to content

Instantly share code, notes, and snippets.

View kawamou's full-sized avatar
👋

kawamou kawamou

👋
View GitHub Profile
@kawamou
kawamou / making-the-most-of-local-llms.ipynb
Created May 5, 2024 22:33 — forked from kyo-takano/making-the-most-of-local-llms.ipynb
ローカルLLMはこーやって使うの💢
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kawamou
kawamou / ggml-pytorch.md
Last active January 4, 2024 06:24
ggml-pytorch.md
GGML PyTorch
用途 機械学習ライブラリ 機械学習ライブラリ
言語サポート C/C++ Python
ファイル形式 GGML,GGUF .pth,.pt,.onnx
@kawamou
kawamou / my_wsgi_server.py
Created June 20, 2021 13:59 — forked from logston/my_wsgi_server.py
My Own WSGI Server + WSGI App In Less Than 35 Lines
import socket
def app(environ, start_response):
status_n_headers = ['HTTP/1.1 200 OK', 'Content-Type: text/plain\r\n',]
body = ['bytes', 'and', 'more','bytes']
return status_n_headers + body
def start_response():
# waiting for web3
@kawamou
kawamou / framework.py
Created June 20, 2021 13:56 — forked from vaibhav-sinha/framework.py
Writing your own HTTP Server - Implementing WSGI: Web Framework
import importlib
import os
ENVIRONMENT_VARIABLE = 'PYDEV_SETTINGS_MODULE'
class WSGIHandler:
def __init__(self):
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
@kawamou
kawamou / worker.py
Created June 20, 2021 13:56 — forked from vaibhav-sinha/worker.py
Writing your own HTTP Server - Implementing WSGI: Worker Implementation Changes
import logging
import queue
import threading
from typing import Type
from http_parser.pyparser import HttpParser
from gateway import WSGI
logger = logging.getLogger(__name__)
@kawamou
kawamou / gateway.py
Created June 20, 2021 13:56 — forked from vaibhav-sinha/gateway.py
Writing your own HTTP Server - Implementing WSGI: WSGI class
import sys
from io import StringIO
class WSGI:
def __init__(self, config):
import importlib.util
self.config = config