Skip to content

Instantly share code, notes, and snippets.

View AnyISalIn's full-sized avatar
:electron:

AnyISalIn AnyISalIn

:electron:
View GitHub Profile
import pandas
import numpy as np
from scipy.stats import randint
from sklearn.ensemble import RandomForestClassifier
from sklearn.datasets import make_classification
rng = np.random.RandomState(0)
X, y = make_classification(n_samples=100000000, n_features=500, random_state=rng)
with open('input', 'w') as f:
f.write(str(X[0]))
f.write("\n")
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: cleaner
namespace: tekton-pipelines
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
@AnyISalIn
AnyISalIn / ipynb
Last active September 21, 2023 05:57
fuse/unfuse multiple lora
This file has been truncated, but you can view the full file.
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "ce75a926-c68b-4ea7-947f-1d20f7ced1c6",
"metadata": {},
"outputs": [],
"source": [
"!"
@AnyISalIn
AnyISalIn / lcm-vs-origin.py
Created November 10, 2023 08:27
LCM-LoRA vs Origin Model
# Copyright 2023 https://novita.ai
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR TH
openapi: 3.1.0
info:
title: FAL.AI Text to Image API
version: "1.0.0"
description: |
API for FLUX.1 [schnell], a 12 billion parameter flow transformer that generates high-quality images from text.
servers:
- url: https://queue.fal.run
description: FAL.AI API server
security:
openapi: 3.1.0
info:
title: Brave Search API
description: |
REST API to query Brave Search and get back search results from the web.
To try the API on a Free plan, you'll still need to subscribe — you simply won't be charged.
Once subscribed, you can get an API key in the API Keys section.
version: 1.0.0
servers:
- url: https://api.search.brave.com/res/v1
openapi: 3.1.0
info:
title: Logo.dev API
description: |
Logo.dev API provides company logos for websites and applications.
This API allows you to fetch logos by domain name with various customization options.
version: 1.0.0
servers:
- url: https://img.logo.dev
description: Logo.dev API endpoint