prd101-wd/sentiment_airline
Viewer • Updated • 8.66k • 10
How to use prd101-wd/phi1_5-sentiment-merged with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="prd101-wd/phi1_5-sentiment-merged") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("prd101-wd/phi1_5-sentiment-merged")
model = AutoModelForCausalLM.from_pretrained("prd101-wd/phi1_5-sentiment-merged")axolotl version: 0.10.0.dev0
base_model: microsoft/phi-1_5
# optionally might have model_type or tokenizer_type
model_type: AutoModelForCausalLM
tokenizer_type: AutoTokenizer
# Automatically upload checkpoint and final model to HF
# hub_model_id: username/custom_model_name
load_in_8bit: false
load_in_4bit: true
datasets:
- #path: garage-bAInd/Open-Platypus
path: /workspace/data/sentiment.jsonl
type: alpaca
dataset_prepared_path:
val_set_size: 5
output_dir: /workspace/outputs/phi-sentiment-out
sequence_len: 2048
sample_packing: true
pad_to_sequence_len: true
#axolotl own suggestion
eval_sample_packing: False
adapter: qlora
#lora_model_dir:
lora_r: 64
lora_alpha: 32
lora_dropout: 0.05
lora_target_linear: true
wandb_project:
wandb_entity:
wandb_watch:
wandb_name:
wandb_log_model:
gradient_accumulation_steps: 2
micro_batch_size: 4
num_epochs: 1
optimizer: adamw_torch_fused
adam_beta2: 0.95
adam_epsilon: 0.00001
max_grad_norm: 1.0
lr_scheduler: cosine
learning_rate: 0.0002
bf16: auto
#tf32: true
gradient_checkpointing: true
gradient_checkpointing_kwargs:
use_reentrant: True
resume_from_checkpoint:
logging_steps: 1
#flash_attention: true
flash_attention: false
warmup_steps: 100
evals_per_epoch: 4
saves_per_epoch: 1
weight_decay: 0.1
resize_token_embeddings_to_32x: true
special_tokens:
pad_token: "<|endoftext|>"
This model is a fine-tuned version of microsoft/phi-1_5 on the /workspace/data/sentiment.jsonl dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 6.6611 | 0.0227 | 1 | 8.7855 |
| 6.2266 | 0.25 | 11 | 8.0873 |
| 2.2228 | 0.5 | 22 | 4.1190 |
| 0.3054 | 0.75 | 33 | 0.5615 |
| 0.2409 | 1.0 | 44 | 0.2148 |
Base model
microsoft/phi-1_5