Views
No views yet
python generate.py --base_model budecosystem/genz-13b-infinite
1import torch
2from transformers import GenerationConfig, AutoModelForCausalLM, AutoTokenizer
3from model.llama import convert_llama_model
4
5local_branch = 2048
6global_branch = 10
7limit_distance = 2048
8
9model = AutoModelForCausalLM.from_pretrained(
10 "budecosystem/genz-13b-infinite",
11 torch_dtype=torch.float16,
12 device_map="auto",
13)
14model = convert_llama_model(model, local_branch, global_branch)
15| Task | 4096 | 5120 | 8192 | 16384 |
|---|---|---|---|---|
| Passkey retreival | 100 | 75 | 48 | 30 |
| Hyperparameters | Value |
|---|---|
| per_device_train_batch_size | 1 |
| gradient_accumulation_steps | 1 |
| epoch | 3 |
| steps | 8550 |
| learning_rate | 2e-4 |
| lr schedular type | cosine |
| warmup steps | 1000 |
| optimizer | adamw |
| fp16 | True |
| GPU | 4 A100 80GB |