Skip to content

Commit d26e062

Browse files
committed
add reame
1 parent ffc944a commit d26e062

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@ python setup.py install
2424

2525
### How to use
2626

27-
- `examples/example1.py` and `examples/README.md` will be very helpful to understand the usage.
27+
- `examples/example_w2v.py`, `examples/example_lda.py` and `examples/README.md` will be very helpful to understand the usage.
2828
- paremeter description can be seen in `cusim/proto/config.proto`
2929

3030
### Performance
31+
32+
33+
### Future tasks
34+
35+
- support half precision
36+
- support multi device (multi device implementation on LDA model will not be that hard, while multi device training on w2v may require some considerations)
37+
- implement other models such as FastText, BERT, etc

examples/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
### How to run example code
2+
3+
0. install requirements
4+
5+
```shell
6+
pip install -r requirements.txt
7+
```
8+
9+
1. first, it is good to know about python-fire in https://github.com/google/python-fire, if you haven't heard yet.
10+
11+
2. run w2v experiments on various setting (e.g. skip gram with hierarchical softmax)
12+
13+
```shell
14+
python example_w2v.py run_experiments --sg0=True --hs0=True
15+
```
16+
17+
7. run lda experiments
18+
19+
```shell
20+
python example_lda.py run_experiments
21+
```

0 commit comments

Comments
 (0)