Skip to content

Commit df9a9b0

Browse files
authored
Merge pull request #77 from Cyberes/main
Allow hiding of the welcome message
2 parents f0ec93d + be5cecb commit df9a9b0

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

bitsandbytes/cuda_setup/main.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"""
1818

1919
import ctypes
20+
import os
2021

2122
import torch
2223

@@ -112,12 +113,12 @@ def get_compute_capability(cuda):
112113

113114

114115
def evaluate_cuda_setup():
115-
# we remove this for now and see how things go
116-
#print('')
117-
#print('='*35 + 'BUG REPORT' + '='*35)
118-
#print('Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues')
119-
#print('For effortless bug reporting copy-paste your error into this form: https://docs.google.com/forms/d/e/1FAIpQLScPB8emS3Thkp66nvqwmjTEgxp8Y9ufuWTzFyr9kJ5AoI47dQ/viewform?usp=sf_link')
120-
#print('='*80)
116+
if 'BITSANDBYTES_NOWELCOME' not in os.environ or str(os.environ['BITSANDBYTES_NOWELCOME']) == '0':
117+
print('')
118+
print('='*35 + 'BUG REPORT' + '='*35)
119+
print('Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues')
120+
print('For effortless bug reporting copy-paste your error into this form: https://docs.google.com/forms/d/e/1FAIpQLScPB8emS3Thkp66nvqwmjTEgxp8Y9ufuWTzFyr9kJ5AoI47dQ/viewform?usp=sf_link')
121+
print('='*80)
121122
if not torch.cuda.is_available(): return 'libsbitsandbytes_cpu.so', None, None, None, None
122123

123124
cuda_setup = CUDASetup.get_instance()

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: 8-bit
22
channels:
33
- conda-forge
4+
- pytorch
45
dependencies:
56
- python=3.9
67
- pytest

0 commit comments

Comments
 (0)