Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local --cuda out of memory == 3869MiB / 3910MiB #126

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Conversation

RohitDhankar
Copy link
Owner

  • local GPU out of memory even with -- "batch_size": 2,
{
    "model": "abhishek/llama-2-7b-hf-small-shards",
    "data_path": ".",
    "project_name": "llm_1a",
    "train_split": "train",
    "valid_split": null,
    "text_column": "text",
    "token": null,
    "lr": 0.0002,
    "epochs": 3,
    "batch_size": 2,
    "warmup_ratio": 0.1,
    "gradient_accumulation": 1,
    "optimizer": "adamw_torch",
    "scheduler": "linear",
    "weight_decay": 0.0,
    "max_grad_norm": 1.0,
    "seed": 42,
    "add_eos_token": false,
    "block_size": -1,
    "use_peft": true,
    "lora_r": 16,
    "lora_alpha": 32,
    "lora_dropout": 0.05,
    "logging_steps": -1,
    "evaluation_strategy": "epoch",
    "save_total_limit": 1,
    "save_strategy": "epoch",
    "auto_find_batch_size": false,
    "fp16": false,
    "push_to_hub": false,
    "use_int8": false,
    "model_max_length": 1024,
    "repo_id": null,
    "use_int4": true,
    "trainer": "sft",
    "target_modules": null,
    "merge_adapter": false,
    "username": null,
    "use_flash_attention_2": false
}

@RohitDhankar RohitDhankar merged commit 3d8f66a into master Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant