minor: Add basic editorconfig and pre-commit hooks to enforce style for whitespaces (#1926)
This commit is contained in:
@@ -7,9 +7,9 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
|
||||
|
||||
# Follow the installation prompts, then reload your shell
|
||||
. "$HOME/.cargo/env"
|
||||
. "$HOME/.cargo/env"
|
||||
source $HOME/.cargo/env
|
||||
|
||||
# Verify installation
|
||||
rustc --version
|
||||
cargo --version
|
||||
cargo --version
|
||||
|
||||
@@ -10,7 +10,7 @@ HF_TOKEN = "..."
|
||||
|
||||
prompt = """
|
||||
### Instruction:
|
||||
Write a poem about the transformers Python library.
|
||||
Write a poem about the transformers Python library.
|
||||
Mention the word "large language models" in that poem.
|
||||
### Response:
|
||||
The Transformers are large language models,
|
||||
|
||||
@@ -5,7 +5,7 @@ MODEL = "mistralai/Mistral-7B-Instruct-v0.3"
|
||||
ADAPTER = "/home/ying/test_lora"
|
||||
prompt = """
|
||||
### Instruction:
|
||||
Write a poem about the transformers Python library.
|
||||
Write a poem about the transformers Python library.
|
||||
Mention the word "large language models" in that poem.
|
||||
### Response:
|
||||
The Transformers are large language models,
|
||||
|
||||
5
scripts/version_branch_to_tag.sh
Normal file → Executable file
5
scripts/version_branch_to_tag.sh
Normal file → Executable file
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script is used for release.
|
||||
# It tags all remote branches starting with 'v' with the same name as the branch,
|
||||
# deletes the corresponding branches from the remote, and pushes the tags to the remote repository.
|
||||
# It tags all remote branches starting with 'v' with the same name as the branch,
|
||||
# deletes the corresponding branches from the remote, and pushes the tags to the remote repository.
|
||||
|
||||
git fetch origin --prune
|
||||
|
||||
@@ -27,4 +27,3 @@ done
|
||||
git push --tags
|
||||
|
||||
echo "All branches starting with 'v' have been tagged, deleted from remote, and pushed to the remote repository."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user