Comments (3)
Work in Progress sample of such a YAML file:
python: 3.x.x # Numeric input separated by dot
dependencies:
- conda: # list
- conda -c channel dep1=x.x.x # Version 1
- ["rdkit", "conda-forge"] # Version 2
- ["git-lfs", "0.1.1", "default"] # Version 3
- pip
- dep1=x.x.x # pip expects == however
- dep2='^x.x.x'
- dep3='~x.x.x'
- dep4='<=x.x.x' # same for >=
- ["dep", "x.x.x"]
# We will have to urge the users to keep an order? Not sure
# Also it'll be work to understand if there are any conda reqs in this list
- conda install dep -c channel
- pip install dep==1.1.1
# This is a combination of system-commands and dependencies
# We will know there is conda if there's a list with 4 elements
# Forces users to write version, and channel in the case of conda
commands:
- any:
- ["pip", "rdkit", "2023.09"]
- ["pip", "openai", "x.x.x"]
- ["conda", "git-lfs", "x.x.x", "conda-forge"]
- "sudo apt-get ..."
- ["pip", "pyairtable", "x.x.x"]
- osx:
- "...."
- linux:
- "..."
commands:
- osx-cpu:
- ["pip", "pytorch", "1.1", "https://....-cpu..."]
- osx-gpu:
- ["pip", "pytorch", "1.1", "https://...-gpu..."]
platform: ['osx', 'linux'] # list with only these acceptable values - This needs to be more comprehensive, since we want to specify which linux - debian/suse whatever, and osx-intel or osx with m chips
runtime/hardware/compute: ['cpu', 'gpu'] # This would lead to a matrix of depedencies for cpu and gpu
# We're better off calling this system commands or something that reflects that bec these are not 'extra'
# Type 1 is preferable to type 3
extra_requires_type1:
- any:
- ....
- ....
- osx:
- cmd1
- cmd2
- linux:
- cmd1 opt1 opt2
- cmd2
extra_requires_type3:
- osx:
- ["cmd1", "op1", "op2"]
- ["cmd1", "op1", "op2"]
- linux:
- ["cmd1", "op1", "op2"]
- ["cmd1", "op1", "op2"]
from ersilia.
This issue is basically a duplicate of #743
from ersilia.
The standardized version of the YAML above is finalized to be the following for now, which we can expand upon later, namely, specifying hardware platform and dependencies specific to that:
python: 3.x.x
commands:
- ["pip", "rdkit", "2023.09"]
- ["pip", "openai", "x.x.x"]
- ["conda", "git-lfs", "x.x.x", "conda-forge"]
- "sudo apt-get ..."
- ["pip", "pyairtable", "x.x.x"]
- osx:
- "...."
- linux:
- "..."
High level constraints:
- We enforce pip dependencies to be in a list containing 3 elements (pip, package, version)
- We enforce conda dependencies to be in a list containing 4 elements (conda, package, version, channel)
from ersilia.
Related Issues (20)
- 🐈 Task: Docker build for ersilia-pack HOT 2
- 🐛 Bug: log file not found warning after using the track flags
- 🐛 Bug: Fetching models on MacBook (M1) results in 404 error due to looking for linux/arm64 HOT 1
- 🐕 Batch: Resource monitoring with different input scenarios and systems HOT 2
- 🐛 Bug: Numpy versions conflicts HOT 2
- 🐛 Bug: Tracking functionality does not work when a result CSV file is not specified
- 🐛 Bug: Performance Metrics Fail for String Output Model HOT 4
- 🐛 Bug: Ersilia close when model serving is interrupted HOT 2
- 🦠 Model Request: Cardiotoxicity Classifier HOT 13
- 🦠 Model Request: Demo Malaria Model HOT 8
- 🦠 Model Request: Predict bioactivity against Main Protease of SARS-CoV-2 HOT 21
- 🦠 Model Request: Unit Test Model Compound HOT 3
- 🦠 Model Request: QupKake: predict micro-pKa of organic molecules HOT 28
- 🐈 Task: Remove dead code from ersilia
- 🐈 Task: Inconsistency between current licenses recognized by Ersilia vs those maintained in Airtable HOT 5
- 🐛 Bug: Ersilia fetch breaking especially when inside docker containers
- 🐈 Task: Reflect correct values in information.json HOT 5
- 🐈 Task: Ersilia tries to close docker containers when any model is fetched, even if from source
- 🦠 Model Request: Unit Test Model Compound HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ersilia.