Filter | Description | Example |
---|---|---|
allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |
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
import torch | |
from datasets import load_dataset | |
from peft import LoraConfig, get_peft_model, prepare_model_for_int8_training | |
from transformers import AutoModelForCausalLM, AutoTokenizer, TrainingArguments | |
from trl import SFTTrainer | |
def train(): | |
train_dataset = load_dataset("tatsu-lab/alpaca", split="train") | |
tokenizer = AutoTokenizer.from_pretrained("Salesforce/xgen-7b-8k-base", trust_remote_code=True) |
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
import ibm_db | |
dsn_hostname = "dashdb-txn-sbox-yp-dal09-04.services.dal.bluemix.net" # e.g.: "dashdb-txn-sbox-yp-dal09-04.services.dal.bluemix.net" | |
dsn_uid = "121a1we" # e.g. "abc12345" | |
dsn_pwd = "xfgfdg121212" # e.g. "7dBZ3wWt9XN6$o0J" | |
dsn_driver = "{IBM DB2 ODBC DRIVER}" | |
dsn_database = "BLUDB" # e.g. "BLUDB" | |
dsn_port = "50000" # e.g. "50000" | |
dsn_protocol = "TCPIP" # i.e. "TCPIP" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
title | subtitle | author | date | source |
---|---|---|---|---|
Docker Compose Cheatsheet |
Quick reference for Docker Compose commands and config files |
Jon LaBelle |
April 7, 2019 |
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
module.exports = { | |
I: '我が名は神龍', | |
actions: { | |
waitForElement: '要素が表示されるまで待ってやろう', | |
waitForClickable: 'クリック可能になるまで待ってやろう', | |
waitForVisible: '要素が見えるようになるまで待ってやろう', | |
waitForText: 'テキストが表示されるまで待ってやろう', | |
refresh: 'ページを更新してやろう', | |
amOnPage: 'URLにアクセスしてやろう', | |
click: 'クリックしてやろう', |
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
#!/bin/bash | |
# Adapted from https://gist.github.com/tilap/0590e78c9cfd8f6548f5 | |
# Basic script to set custom project hook and share it with other developers | |
# | |
# cd [path-of-the-script] | |
# . install.sh | |
# | |
# Folders usecase |
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
# Editors | |
.vscode/ | |
.idea/ | |
# Vagrant | |
.vagrant/ | |
# Mac/OSX | |
.DS_Store |
- Export out all your S3 data
- Source: http://docs.aws.amazon.com/cli/latest/reference/s3/sync.html
# sync from bucket to local
aws s3 sync <bucket> <target_folder> <options>
aws s3 sync s3://mybucket . --acl public-read
aws s3 sync --region ap-northeast-1 s3://[移動元バケット名] s3://[移動先バケット名]
NewerOlder