Skip to content

Commit c898e39

Browse files
committed
Shipping w/ Error code
Successfully creates the docker image and commencers training however somethings wrong about 3/4 way in. pushing as is
1 parent 3f62cd8 commit c898e39

39 files changed

+1111
-174
lines changed

‎langdrive.yaml‎

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,30 @@ huggingface:
2222
baseModel: vilsonrodrigues/falcon-7b-instruct-sharded
2323
hfModelPath: karpathic/falcon-7b-instruct-tuned
2424
deployToHf: true
25+
hfTrainPath: karpathic/auto-trainer
26+
isPrivate: true
2527

2628
train:
2729
input:
2830
path: ./tests/midjourney_prompt.csv
2931
value: input
3032
output:
3133
path: ./tests/midjourney_prompt.csv
32-
outputValue: output
34+
outputValue: output
35+
settings:
36+
PROJECT_NAME: my_test_llm
37+
MODEL_NAME: abhishek/llama-2-7b-hf-small-shards
38+
PUSH_TO_HUB: false
39+
LEARNING_RATE: 2e-4
40+
NUM_EPOCHS: 1
41+
BATCH_SIZE: 1
42+
BLOCK_SIZE: 1024
43+
WARMUP_RATIO: 0.1
44+
WEIGHT_DECAY: 0.01
45+
GRADIENT_ACCUMULATION: 4
46+
MIXED_PRECISION: fp16
47+
PEFT: true
48+
QUANTIZATION: int4
49+
LORA_R: 16
50+
LORA_ALPHA: 32
51+
LORA_DROPOUT: 0.05

‎markdown/docs/api/cli.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Here are your Args:
1212
- `hfToken`: An API key provided by Hugging Face with `write` permissions. Get one [here](https://huggingface.co/docs/hub/security-tokens).
1313
- `baseModel`: The original model to train. This can be one of the models in our supported models shown at the bottom of this page
1414
- `deploy`: Weather training weights should be hosted in a hosting service. Default False.
15-
- `deployToHf`: Whether traiing weights should be stored in huggingface specifically. Either true | false
15+
- `deployToHf`: Whether traiing weights should be stored in huggingface specifically. default true
16+
- `isPrivate`: Whether created services should be publicly visible. default false
1617
- `hfModelPath`: The full path to your hugging face model repo where the model should be deployed. Format: hugging face username/model
1718
- `inputValue`: The input value to extract from the data retrieved, default: 'input'
1819
- `outputValue`: The output value to extract from the data retrieved, default: 'output'

‎markdown/docs/getting-started.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ The command `langdrive train` is used to train the LLM, please see how to config
2626
- `deploy`: Weather training weights should be hosted in a hosting service. Default False.
2727
- `deployToHf`: Whether traiing weights should be stored in huggingface specifically. Either true | false
2828
- `hfModelPath`: The full path to your hugging face model repo where the model should be deployed. Format: hugging face username/model
29+
- `hfTrainPath`: The full path for training environment to be created. Format: hugging face username/spaces_name
30+
- `isPrivate`: Whether the training service and model should be publicly visible.
2931
- `csv`: Path to shared csv training data.
3032
- `path`: Path to shared training data.
3133
- `inputPath`: Path to input training data if not shared.

‎package-lock.json‎

Lines changed: 25 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
"langdrive": "./main.js"
88
},
99
"scripts": {
10-
"start": "nodemon ./src/start_server.js",
10+
"start": "nodemon ./src/start_server.js",
1111
"serveDocs": "cd markdown && npm run start",
1212
"serveDocsw": "cd markdown; npm run start",
13-
"buildDocs": "rm ./docs/* -r && cd markdown && npm run build && mv build/* ../docs/ && cp CNAME ../docs/",
14-
"buildDocsw": "rm ./docs/* -r; cd markdown; npm run build; mv build/* ../docs/; cp CNAME ../docs/",
13+
"buildDocs": "rm ./docs/* -r && cd markdown && npm run build && mv build/* ../docs/ && cp CNAME ../docs/",
14+
"buildDocsw": "rm ./docs/* -r; cd markdown; npm run build; mv build/* ../docs/; cp CNAME ../docs/",
1515
"version": "npm version patch",
1616
"testCli": "./tests/test_cli.bash",
1717
"testChatbot": "node ./src/server/test.mjs"
@@ -32,8 +32,10 @@
3232
"express": "^4.18.2",
3333
"express-session": "^1.17.3",
3434
"faiss-node": "^0.2.3",
35+
"fetch-blob": "^4.0.0",
3536
"firebase-admin": "^11.11.0",
3637
"firebase-functions": "^4.3.1",
38+
"form-data": "^4.0.0",
3739
"googleapis": "^123.0.0",
3840
"js-yaml": "^4.1.0",
3941
"langchain": "^0.0.124",

0 commit comments

Comments
 (0)