Skip to content

Instantly share code, notes, and snippets.

View SharathHebbar's full-sized avatar
💭
laugh..😆 love..♥️ live..☺️

Sharath S Hebbar SharathHebbar

💭
laugh..😆 love..♥️ live..☺️
View GitHub Profile

ValueError: Your setup doesn't support bf16/gpu. You need torch>=1.10, using Ampere GPU with cuda>=11.0

Change bf16 to fp16 for non Ampere GPUs

@SharathHebbar
SharathHebbar / trl.md
Last active January 24, 2024 05:44
TRL Issue resolved
! pip show datasets
Name: datasets
Version: 2.16.1
Summary: HuggingFace community-driven open-source library of datasets
Home-page: https://github.com/huggingface/datasets
Author: HuggingFace Inc.
@SharathHebbar
SharathHebbar / 4bit.md
Last active January 24, 2024 05:45
Pushing 4bit quantized model
!pip install git+https://github.com/huggingface/transformers.git -q -U # transformers version:  4.37.0
!pip install git+https://github.com/huggingface/accelerate.git -q -U # accelerate version:  0.27.0
!pip install bitsandbytes # bitsandbytes version:  0.42.0
!pip install git+https://github.com/huggingface/peft.git -q -U # peft version: 0.7.2
@SharathHebbar
SharathHebbar / table2.md
Created November 18, 2023 16:16
Table2
R-3 F-3 M-3
Segments Scores Descriptions
Best Customer
@SharathHebbar
SharathHebbar / table1.md
Created November 18, 2023 16:15
Table1
1
Customer ID Date Frequency Price
@SharathHebbar
SharathHebbar / transformers.md
Last active January 24, 2024 05:47
Text Generation vs Text2TextGeneration

Text Generation

from transformers import pipeline
task = "text-generation"
model_name = "gpt2"
max_output_length = 30
num_of_return_sequences = 2
input_text = "Hello, "
text_generator = pipeline(
@SharathHebbar
SharathHebbar / langchain_stable.md
Last active January 24, 2024 05:48
Langchain Version

langchain==0.0.294