forked from nomic-ai/gpt4all
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
195f8a7
commit 311c818
Showing
14 changed files
with
50 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Inference on Training Data | ||
|
||
|
||
## Run Inference | ||
|
||
```bash | ||
torchrun --master_port=29085 --nproc-per-node 8 inference.py --config=configs/inference/gptj.yaml | ||
``` | ||
|
||
|
||
## Visualizations | ||
|
||
```bash | ||
python build_map.py | ||
``` | ||
|
||
will build a map in `Atlas`, one using the internal clustering algorithm provided by Nomic and one using the embeddings generated by the finetuned model. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
# model/tokenizer | ||
model_name: # update with llama 7b | ||
tokenizer_name: # update with llama 7b | ||
model_name: # update with llama model name | ||
tokenizer_name: # update with llama model name | ||
lora: true | ||
lora_path: "nomic-ai/gpt4all-lora" | ||
|
||
max_new_tokens: 512 | ||
temperature: 0.001 | ||
prompt: | | ||
#this code prints a string reversed | ||
my_string = "hello how are you" | ||
print(len(my_string)) | ||
My code above does not work. Can you help me? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# model/tokenizer | ||
model_name: "nomic-ai/gpt4all-warmup-lr-epoch_1" | ||
tokenizer_name: "EleutherAI/gpt-j-6b" | ||
lora: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# model/tokenizer | ||
model_name: "EleutherAI/gpt-j-6b" | ||
tokenizer_name: "EleutherAI/gpt-j-6B" | ||
lora: true | ||
lora_path: "nomic-ai/gpt4all-gptj-lora-epoch_1" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ deepspeed | |
sentencepiece | ||
jsonlines | ||
nomic | ||
scikit-learn | ||
scikit-learn | ||
matplotlib |