Skip to content

Instantly share code, notes, and snippets.

View ifeherva's full-sized avatar

Istvan Fehervari ifeherva

View GitHub Profile
g_target_modules = [
"attn.to_q_g",
"attn.to_k_g",
"attn.to_v_g",
]
g_lora_config = LoraConfig(
r=g_lora_rank,
lora_alpha=g_lora_rank,
init_lora_weights="gaussian",
target_modules=g_target_modules,
@ifeherva
ifeherva / zap.py
Created October 24, 2023 17:13
Zapier Huggingface daily papers extractor
# Importing the required libraries
import requests
import re
# Defining the URL of the webpage to be scraped
url = "https://huggingface.co/papers"
# Sending a GET request to the webpage and storing the response in a variable
response = requests.get(url)