ffreemt commited on
Commit
63291d6
1 Parent(s): 88e2235

Update ray added in branch ray-enabled

Browse files
Files changed (2) hide show
  1. pyproject.toml +1 -1
  2. ray-pad.txt +7 -0
pyproject.toml CHANGED
@@ -20,7 +20,7 @@ huggingface-hub = "^0.5.1"
20
  sentencepiece = "^0.1.96"
21
  transformers = "^4.19.4"
22
  hf-model-s-cpu = "^0.1.1"
23
- ray = "^1.13.0"
24
 
25
  [tool.poe.executor]
26
  type = "poetry"
 
20
  sentencepiece = "^0.1.96"
21
  transformers = "^4.19.4"
22
  hf-model-s-cpu = "^0.1.1"
23
+ ray = "^^1.13.0"
24
 
25
  [tool.poe.executor]
26
  type = "poetry"
ray-pad.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import os
2
+ import ray
3
+ from pathlib import Path
4
+
5
+ filename = "/home/mu2018/github/en-de-zh-txt/fangfang-en.txt"
6
+ lines = Path(filename).read_text("utf8").splitlines()
7
+ lst = [_.strip() for _ in linesif _.stip()]