Skip to content

Commit e92b18c

Browse files
Code restructured
1 parent 9ba1c01 commit e92b18c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+44
-112547
lines changed

.gitignore

Lines changed: 0 additions & 11 deletions
This file was deleted.

Dockerfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

README.md

Lines changed: 14 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -9,70 +9,20 @@ https://www.ravenprotocol.com/
99
#### What is Raven Distribution Framework?
1010
The foundation for any Machine Learning or Deep Learning Framework. Simply put, it is more like a decentralized calculator, comparable to a decentralized version of the IBM machines that were used to launch the Apollo astronauts. Apart from building ML/DL frameworks, a lot more can be done on it, such as maximizing yield on your favorite DeFi protocols like Compound and more!
1111

12-
13-
#### Setup
14-
15-
1. Install and create a virtual environment
16-
17-
```
18-
pip3 install virtualenv & virtualenv venv -p python3 & source venv/bin/activate
19-
```
20-
21-
2. Install dependencies
22-
23-
```
24-
pip3 install -r requirements.txt
25-
```
26-
27-
3. Run socket server
28-
29-
```
30-
python3 run_socket_server.py
31-
```
32-
33-
4. Install redis-server
34-
35-
```
36-
# Ubuntu
37-
sudo apt install redis-server
38-
39-
# Mac
40-
brew install redis
41-
brew services start redis
42-
```
43-
44-
5. Specify MySQL database credentials in the common/constants.py file
45-
46-
```
47-
MYSQL_HOST = "localhost"
48-
MYSQL_PORT = "3306"
49-
MYSQL_USER = "root"
50-
MYSQL_PASSWORD = "password"
51-
MYSQL_DATABASE = "rdf"
52-
```
53-
54-
4. Open ravenclient/index.html in your browser
55-
56-
```
57-
ravenclient/index.html
58-
```
59-
60-
#### How to write operations?
61-
62-
from ravop.core import Scalar, Tensor
63-
a = Scalar(10)
64-
b = Scalar(20)
65-
66-
# Calculate sum of a and b
67-
c = a.add(b)
68-
69-
# Subtract b from a
70-
d = a.sub(b)
71-
72-
# Matrix Multiplication
73-
a = Tensor([[2,3,4],[3,4,5],[5,6,7]])
74-
b = Tensor([[3],[4],[6]])
75-
c = a.matmul(b)
12+
#### Setup
13+
14+
# Create a virutal environment before you install RDF libraries
15+
sh setup.sh
16+
17+
#### Start the socket server
18+
19+
python3 run_socket_server.py
20+
21+
#### Start workers
22+
23+
python3 open_worker.py # worker 1
24+
python3 open_worker.py # worker 2
25+
python3 open_worker.py # worker 3
7626

7727
#### How to contribute:
7828

clear_redis_queues.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

common/__init__.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

common/constants.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)