Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Optimus Prime
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NetSys
Optimus Prime
Commits
e8d514da
Unverified
Commit
e8d514da
authored
10 months ago
by
Alexandru-Mihai GHERGHESCU
Browse files
Options
Downloads
Patches
Plain Diff
Add conda environment file, update README
parent
e68d037d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#72319
passed
10 months ago
Stage: test_gpu
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+9
-20
9 additions, 20 deletions
README.md
conda-env.yml
+15
-0
15 additions, 0 deletions
conda-env.yml
with
24 additions
and
20 deletions
README.md
+
9
−
20
View file @
e8d514da
...
@@ -15,25 +15,13 @@ After training a model (or getting hold of one from other sources), there's an
...
@@ -15,25 +15,13 @@ After training a model (or getting hold of one from other sources), there's an
example on how to run inference in
`inference.py`
. It uses nucleus sampling,
example on how to run inference in
`inference.py`
. It uses nucleus sampling,
with adjustable top-p threshold and temperature values.
with adjustable top-p threshold and temperature values.
## Basic building blocks
As PyTorch itself, this framework is split between a number of modules. The
most important modules are the
`OptimusDataLoader`
, the
`Dataset`
s, the
`Trainer`
, the tokenizers and the models. These can be combined and adapted in
any way, shape or form to train a model from scratch.
## Custom training
## Custom training
The usual workflow for a user is to create and train a tokenizer (see
The usual workflow for a user is to create a model architecture (see
`optimus/tokenizers`
for an example), model a dataset (see
`optimus/datasets`
`optimus/models`
as an example) and use the trainer modules to train the model.
for an example), create a model architecture (see
`optimus/models`
as an
The
`Trainer`
module has a number of useful options which can be used during
example) and use the data loader and the trainer modules to train the model. The
training (mixed precision training, checkpointing, gradient accumulation etc.;
`Trainer`
module has a number of useful options which can be used during
see
`optimus/trainer.py`
for what the Trainer is capable of).
training (mixed precision training, checkpointing, gradient accumulation,
plotting the training loss etc.; see
`optimus/trainer.py`
for what the Trainer
is capable of).
Of course, any number of the above can be used as defaults.
> [!TIP]
> [!TIP]
> You can choose which GPU's to train on, using the environment variable
> You can choose which GPU's to train on, using the environment variable
...
@@ -42,10 +30,11 @@ Of course, any number of the above can be used as defaults.
...
@@ -42,10 +30,11 @@ Of course, any number of the above can be used as defaults.
## Required packages
## Required packages
There are a number of packages required to run the framework. Get your closest
There are a number of packages required to run the framework. There's a
Python retailer and ask him to run the following command:
convenience
`conda-env.yml`
file that should most likely cover every use case.
Get your closest Python retailer and ask him to run the following command:
`
pip install torch fire sentencepiece fastprogress
`
`
conda env create -f conda-env.yml
`
## License
## License
...
...
This diff is collapsed.
Click to expand it.
conda-env.yml
0 → 100644
+
15
−
0
View file @
e8d514da
name
:
conda-env
channels
:
-
conda-forge
dependencies
:
-
python==3.10.13
-
pip==23.3.1
-
nvidia::cuda-nvcc
-
pip
:
-
torch==2.2.2
-
torchaudio==2.2.2
-
torchvision==0.17.2
-
transformers==4.40.0
-
datasets==2.18.0
-
fire==0.6.0
-
tqdm==4.66.4
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment