arsh-maincode commited on
Commit
41d0ccf
·
verified ·
1 Parent(s): d10ad42

Update USAGE.txt

Browse files
Files changed (1) hide show
  1. USAGE.txt +5 -7
USAGE.txt CHANGED
@@ -1,6 +1,5 @@
1
  MATILDA-jev v1 — MATILDA configuration edition
2
 
3
- Local release: /shared/model-cache/matilda-jev-v1-matilda-config
4
  This is a packaging revision of the existing uploaded v1 checkpoint, not the newer augmented-data training run.
5
  Repository: https://huggingface.co/Maincode/matilda-jev-v1
6
  For download and installation instructions, see README.md.
@@ -10,15 +9,15 @@ preprocessing and calibration are unchanged. Configurations expose MATILDA
10
  class names.
11
 
12
  Tested environment: Python 3.12, Transformers 5.17.0, PyTorch 2.14.0, AMD MI355X.
13
- Use a PyTorch build matching the accelerator. The existing cluster environment is:
14
- /shared/training/arsh/kev/.venv/bin/python
15
 
16
  LOAD THE BACKBONE AND PROCESSOR
17
 
18
  import torch
19
  from transformers import AutoModel, AutoProcessor
20
 
21
- path = "/shared/model-cache/matilda-jev-v1-matilda-config"
22
  processor = AutoProcessor.from_pretrained(
23
  path, trust_remote_code=True, local_files_only=True)
24
  backbone = AutoModel.from_pretrained(
@@ -31,9 +30,9 @@ This checkpoint is a decision model and does not have a text-generation LM head.
31
 
32
  START THE DECISION API
33
 
34
- MODEL_DIR=/shared/model-cache/matilda-jev-v1-matilda-config
35
  PYTHONPATH="$MODEL_DIR/runtime" PYTHONNOUSERSITE=1 \
36
- /shared/training/arsh/kev/.venv/bin/python -m maincode_jev_serve.server \
37
  --checkpoint "$MODEL_DIR" --model-name matilda-jev-v1 \
38
  --host 127.0.0.1 --port 8083
39
 
@@ -51,7 +50,6 @@ With MODEL_DIR/runtime on PYTHONPATH:
51
 
52
  Keep using the JEV decision loss/readout, not a causal-language-model trainer.
53
  Use a NEW output directory when saving to preserve this validated release.
54
- The release contains independent, colleague-readable weight files.
55
 
56
  LOCAL VALIDATION
57
 
 
1
  MATILDA-jev v1 — MATILDA configuration edition
2
 
 
3
  This is a packaging revision of the existing uploaded v1 checkpoint, not the newer augmented-data training run.
4
  Repository: https://huggingface.co/Maincode/matilda-jev-v1
5
  For download and installation instructions, see README.md.
 
9
  class names.
10
 
11
  Tested environment: Python 3.12, Transformers 5.17.0, PyTorch 2.14.0, AMD MI355X.
12
+ Use a PyTorch build matching the accelerator (torch 2.14.0, torchvision 0.29.0),
13
+ plus requirements-runtime.txt.
14
 
15
  LOAD THE BACKBONE AND PROCESSOR
16
 
17
  import torch
18
  from transformers import AutoModel, AutoProcessor
19
 
20
+ path = "./matilda-jev-v1" # hf download Maincode/matilda-jev-v1 --local-dir ./matilda-jev-v1
21
  processor = AutoProcessor.from_pretrained(
22
  path, trust_remote_code=True, local_files_only=True)
23
  backbone = AutoModel.from_pretrained(
 
30
 
31
  START THE DECISION API
32
 
33
+ MODEL_DIR=./matilda-jev-v1
34
  PYTHONPATH="$MODEL_DIR/runtime" PYTHONNOUSERSITE=1 \
35
+ python -m maincode_jev_serve.server \
36
  --checkpoint "$MODEL_DIR" --model-name matilda-jev-v1 \
37
  --host 127.0.0.1 --port 8083
38
 
 
50
 
51
  Keep using the JEV decision loss/readout, not a causal-language-model trainer.
52
  Use a NEW output directory when saving to preserve this validated release.
 
53
 
54
  LOCAL VALIDATION
55