dkappe commited on
Commit
2e5d27c
·
verified ·
1 Parent(s): f37e3f0

Upload requirements.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. requirements.txt +12 -14
requirements.txt CHANGED
@@ -1,21 +1,19 @@
1
- # Needle 3 JAX path, GPU build (ZeroGPU).
2
  #
3
- # The pair MUST be matched. Unpinned `jax` resolves to a recent version whose
4
- # `jax.api_util` no longer exports `debug_info`, which flax's axes_scan calls,
5
- # giving: AttributeError: module 'jax.api_util' has no attribute 'debug_info'.
6
- # Verified with `pip install --dry-run`:
7
- # jax[cuda12]==0.4.38 + flax==0.10.2 -> resolves clean
8
- # jax[cuda12]==0.5.3 + flax==0.10.7 -> ResolutionImpossible
9
- # jax[cuda12]==0.6.2 + flax==0.12.0 -> ResolutionImpossible
10
- # These are the pins cactus-needle's own `train` extra declares (flax>=0.10.2,
11
- # jax==0.4.38 for its metal extra).
12
  jax[cuda12]==0.4.38
 
13
  flax==0.10.2
14
  optax
15
  sentencepiece
16
  safetensors
17
- numpy
18
 
19
- gradio>=4.44,<7
20
- cactus-needle==3.0.2
21
- huggingface_hub>=0.34.0
 
 
 
 
1
+ # Needle 3 JAX path + BART-MNLI, GPU build (ZeroGPU).
2
  #
3
+ # The jax pair MUST be matched. Unpinned `jax` resolves to a recent version whose
4
+ # `jax.api_util` no longer exports `debug_info`, which flax's axes_scan calls, and the
5
+ # Space fails at import with AttributeError. The vendor's own extra pins flax>=0.10.2;
6
+ # 0.10.2 and 0.10.4 both resolve cleanly against jax 0.4.38 while 0.10.6+ conflict.
 
 
 
 
 
7
  jax[cuda12]==0.4.38
8
+ jaxlib==0.4.38
9
  flax==0.10.2
10
  optax
11
  sentencepiece
12
  safetensors
 
13
 
14
+ # BART-MNLI backend. Note: the flax weight file for bart-large-mnli is 1.6 GB and the
15
+ # ZeroGPU image is space-limited, so we load it from the Hub at runtime and run it on
16
+ # CPU (device=-1) rather than bundling it. torch is required by the transformers
17
+ # zero-shot pipeline even when running the flax weights.
18
+ torch
19
+ transformers