Cosmobillian commited on
Commit
c0b127e
·
verified ·
1 Parent(s): 170d751

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -3
README.md CHANGED
@@ -48,9 +48,19 @@ Generating a report for a chest X-ray image using this model is straightforward.
48
  ### 1. Install Necessary Libraries
49
 
50
  ```bash
51
- pip install "unsloth[colab-new] @ git+[https://github.com/unslothai/unsloth.git](https://github.com/unslothai/unsloth.git)"
52
- pip install --no-deps transformers trl peft accelerate bitsandbytes
53
- pip install Pillow # For image processing
 
 
 
 
 
 
 
 
 
 
54
  ```
55
 
56
  ### 2. Run Inference with Python
 
48
  ### 1. Install Necessary Libraries
49
 
50
  ```bash
51
+
52
+ %%capture
53
+ import os, re
54
+ if "COLAB_" not in "".join(os.environ.keys()):
55
+ !pip install unsloth
56
+ else:
57
+ import torch; v = re.match(r"[0-9\\.]{3,}", str(torch.__version__)).group(0)
58
+ xformers = "xformers==" + ("0.0.32.post2" if v == "2.8.0" else "0.0.29.post3")
59
+ !pip install --no-deps bitsandbytes accelerate {xformers} peft trl triton cut_cross_entropy unsloth_zoo
60
+ !pip install sentencepiece protobuf "datasets>=3.4.1,<4.0.0" "huggingface_hub>=0.34.0" hf_transfer
61
+ !pip install --no-deps unsloth
62
+ !pip install transformers==4.55.4
63
+ !pip install --no-deps trl==0.22.2
64
  ```
65
 
66
  ### 2. Run Inference with Python