Instructions to use twanghcmut/llama-mixlora-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use twanghcmut/llama-mixlora-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="twanghcmut/llama-mixlora-2")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("twanghcmut/llama-mixlora-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use twanghcmut/llama-mixlora-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "twanghcmut/llama-mixlora-2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "twanghcmut/llama-mixlora-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/twanghcmut/llama-mixlora-2
- SGLang
How to use twanghcmut/llama-mixlora-2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "twanghcmut/llama-mixlora-2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "twanghcmut/llama-mixlora-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "twanghcmut/llama-mixlora-2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "twanghcmut/llama-mixlora-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use twanghcmut/llama-mixlora-2 with Docker Model Runner:
docker model run hf.co/twanghcmut/llama-mixlora-2
Model save
Browse files- 2025-11-22/13-09-56/.hydra/config.yaml +122 -0
- 2025-11-22/13-09-56/.hydra/hydra.yaml +170 -0
- 2025-11-22/13-09-56/.hydra/overrides.yaml +13 -0
- 2025-11-22/13-09-56/train_llama_mixlora.log +2 -0
- config.json +3 -1
- tokenizer.json +2 -9
2025-11-22/13-09-56/.hydra/config.yaml
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
experiment_name: llama2_7b_mixlora_alpaca
|
| 2 |
+
seed: 42
|
| 3 |
+
device: cuda
|
| 4 |
+
paths:
|
| 5 |
+
data_dir: ./data
|
| 6 |
+
output_dir: /research
|
| 7 |
+
checkpoint_dir: ./checkpoints
|
| 8 |
+
log_dir: ./logs
|
| 9 |
+
training_config:
|
| 10 |
+
enable_training: true
|
| 11 |
+
enable_evaluation: true
|
| 12 |
+
enable_generation_demo: true
|
| 13 |
+
sample_prompts:
|
| 14 |
+
- Give three tips for staying healthy.
|
| 15 |
+
- What are the three primary colors?
|
| 16 |
+
- Describe the structure of an atom.
|
| 17 |
+
- How can we reduce air pollution?
|
| 18 |
+
- Explain how photosynthesis works.
|
| 19 |
+
generation_demo:
|
| 20 |
+
max_length: 200
|
| 21 |
+
temperature: 0.8
|
| 22 |
+
top_p: 0.9
|
| 23 |
+
num_return_sequences: 1
|
| 24 |
+
tracking:
|
| 25 |
+
backend: wandb
|
| 26 |
+
wandb:
|
| 27 |
+
project_name: llama2-mixlora-alpaca
|
| 28 |
+
entity: null
|
| 29 |
+
run_name: null
|
| 30 |
+
tags:
|
| 31 |
+
- llama2
|
| 32 |
+
- mixlora
|
| 33 |
+
- alpaca
|
| 34 |
+
- sft
|
| 35 |
+
notes: Training Llama-2-7b-hf with MixLoRA on Alpaca dataset
|
| 36 |
+
eval:
|
| 37 |
+
load_model_path: null
|
| 38 |
+
metrics:
|
| 39 |
+
bleu: true
|
| 40 |
+
rouge: false
|
| 41 |
+
meteor: false
|
| 42 |
+
perplexity: true
|
| 43 |
+
harness:
|
| 44 |
+
harness_path: lm-eval
|
| 45 |
+
results_dir: ./eval_results
|
| 46 |
+
tasks:
|
| 47 |
+
- hellaswag
|
| 48 |
+
model_args: null
|
| 49 |
+
batch_size: null
|
| 50 |
+
limit: null
|
| 51 |
+
custom_eval:
|
| 52 |
+
enabled: true
|
| 53 |
+
sample_size: 10
|
| 54 |
+
max_length: 200
|
| 55 |
+
model:
|
| 56 |
+
type: llama_mixlora
|
| 57 |
+
model_name: meta-llama/Llama-2-7b-hf
|
| 58 |
+
model_type: llama_mixlora
|
| 59 |
+
trust_remote_code: false
|
| 60 |
+
torch_dtype: bfloat16
|
| 61 |
+
device_map: auto
|
| 62 |
+
mixlora_config:
|
| 63 |
+
num_experts: 4
|
| 64 |
+
moe_top_k: 1
|
| 65 |
+
lora_r: 32
|
| 66 |
+
lora_alpha: 16
|
| 67 |
+
lora_dropout: 0.1
|
| 68 |
+
normal_augmenter:
|
| 69 |
+
enabled: true
|
| 70 |
+
alpha_scale: 1.0
|
| 71 |
+
beta_scale: 1.0
|
| 72 |
+
generation:
|
| 73 |
+
max_length: 2048
|
| 74 |
+
temperature: 0.8
|
| 75 |
+
top_p: 0.9
|
| 76 |
+
top_k: 50
|
| 77 |
+
do_sample: true
|
| 78 |
+
dataset:
|
| 79 |
+
type: alpaca_cleaned
|
| 80 |
+
data_path: ./data/alpaca_cleaned.jsonl
|
| 81 |
+
max_length: 4096
|
| 82 |
+
instruction_key: instruction
|
| 83 |
+
output_key: output
|
| 84 |
+
input_key: input
|
| 85 |
+
dataset_usage_percentage: 0.1
|
| 86 |
+
tokenization:
|
| 87 |
+
padding: true
|
| 88 |
+
truncation: true
|
| 89 |
+
return_tensors: pt
|
| 90 |
+
training:
|
| 91 |
+
type: hf_sft
|
| 92 |
+
learning_rate: 0.0002
|
| 93 |
+
num_epochs: 2
|
| 94 |
+
per_device_train_batch_size: 12
|
| 95 |
+
per_device_eval_batch_size: 12
|
| 96 |
+
gradient_accumulation_steps: 1
|
| 97 |
+
max_grad_norm: 1.0
|
| 98 |
+
weight_decay: 0.01
|
| 99 |
+
warmup_ratio: 0.03
|
| 100 |
+
optim: adamw_torch
|
| 101 |
+
adam_beta1: 0.9
|
| 102 |
+
adam_beta2: 0.999
|
| 103 |
+
adam_epsilon: 1.0e-08
|
| 104 |
+
lr_scheduler_type: cosine
|
| 105 |
+
lr_scheduler_kwargs: {}
|
| 106 |
+
logging_steps: 10
|
| 107 |
+
eval_steps: 100
|
| 108 |
+
save_steps: 500
|
| 109 |
+
save_strategy: epoch
|
| 110 |
+
save_total_limit: 3
|
| 111 |
+
fp16: false
|
| 112 |
+
bf16: true
|
| 113 |
+
gradient_checkpointing: true
|
| 114 |
+
dataloader_num_workers: 0
|
| 115 |
+
remove_unused_columns: false
|
| 116 |
+
max_seq_length: 256
|
| 117 |
+
mixlora_training:
|
| 118 |
+
freeze_base_model: true
|
| 119 |
+
router_aux_loss_coef: 0.01
|
| 120 |
+
push_to_hub: true
|
| 121 |
+
hub_model_id: twanghcmut/llama-mixlora-2
|
| 122 |
+
hub_strategy: end
|
2025-11-22/13-09-56/.hydra/hydra.yaml
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
hydra:
|
| 2 |
+
run:
|
| 3 |
+
dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 4 |
+
sweep:
|
| 5 |
+
dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
| 6 |
+
subdir: ${hydra.job.num}
|
| 7 |
+
launcher:
|
| 8 |
+
_target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
|
| 9 |
+
sweeper:
|
| 10 |
+
_target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
|
| 11 |
+
max_batch_size: null
|
| 12 |
+
params: null
|
| 13 |
+
help:
|
| 14 |
+
app_name: ${hydra.job.name}
|
| 15 |
+
header: '${hydra.help.app_name} is powered by Hydra.
|
| 16 |
+
|
| 17 |
+
'
|
| 18 |
+
footer: 'Powered by Hydra (https://hydra.cc)
|
| 19 |
+
|
| 20 |
+
Use --hydra-help to view Hydra specific help
|
| 21 |
+
|
| 22 |
+
'
|
| 23 |
+
template: '${hydra.help.header}
|
| 24 |
+
|
| 25 |
+
== Configuration groups ==
|
| 26 |
+
|
| 27 |
+
Compose your configuration from those groups (group=option)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
$APP_CONFIG_GROUPS
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
== Config ==
|
| 34 |
+
|
| 35 |
+
Override anything in the config (foo.bar=value)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
$CONFIG
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
${hydra.help.footer}
|
| 42 |
+
|
| 43 |
+
'
|
| 44 |
+
hydra_help:
|
| 45 |
+
template: 'Hydra (${hydra.runtime.version})
|
| 46 |
+
|
| 47 |
+
See https://hydra.cc for more info.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
== Flags ==
|
| 51 |
+
|
| 52 |
+
$FLAGS_HELP
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
== Configuration groups ==
|
| 56 |
+
|
| 57 |
+
Compose your configuration from those groups (For example, append hydra/job_logging=disabled
|
| 58 |
+
to command line)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
$HYDRA_CONFIG_GROUPS
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
Use ''--cfg hydra'' to Show the Hydra config.
|
| 65 |
+
|
| 66 |
+
'
|
| 67 |
+
hydra_help: ???
|
| 68 |
+
hydra_logging:
|
| 69 |
+
version: 1
|
| 70 |
+
formatters:
|
| 71 |
+
simple:
|
| 72 |
+
format: '[%(asctime)s][HYDRA] %(message)s'
|
| 73 |
+
handlers:
|
| 74 |
+
console:
|
| 75 |
+
class: logging.StreamHandler
|
| 76 |
+
formatter: simple
|
| 77 |
+
stream: ext://sys.stdout
|
| 78 |
+
root:
|
| 79 |
+
level: INFO
|
| 80 |
+
handlers:
|
| 81 |
+
- console
|
| 82 |
+
loggers:
|
| 83 |
+
logging_example:
|
| 84 |
+
level: DEBUG
|
| 85 |
+
disable_existing_loggers: false
|
| 86 |
+
job_logging:
|
| 87 |
+
version: 1
|
| 88 |
+
formatters:
|
| 89 |
+
simple:
|
| 90 |
+
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
|
| 91 |
+
handlers:
|
| 92 |
+
console:
|
| 93 |
+
class: logging.StreamHandler
|
| 94 |
+
formatter: simple
|
| 95 |
+
stream: ext://sys.stdout
|
| 96 |
+
file:
|
| 97 |
+
class: logging.FileHandler
|
| 98 |
+
formatter: simple
|
| 99 |
+
filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
|
| 100 |
+
root:
|
| 101 |
+
level: INFO
|
| 102 |
+
handlers:
|
| 103 |
+
- console
|
| 104 |
+
- file
|
| 105 |
+
disable_existing_loggers: false
|
| 106 |
+
env: {}
|
| 107 |
+
mode: RUN
|
| 108 |
+
searchpath: []
|
| 109 |
+
callbacks: {}
|
| 110 |
+
output_subdir: .hydra
|
| 111 |
+
overrides:
|
| 112 |
+
hydra:
|
| 113 |
+
- hydra.mode=RUN
|
| 114 |
+
task:
|
| 115 |
+
- training.num_epochs=2
|
| 116 |
+
- training.per_device_train_batch_size=12
|
| 117 |
+
- training.per_device_eval_batch_size=12
|
| 118 |
+
- dataset.dataset_usage_percentage=0.1
|
| 119 |
+
- dataset.max_length=4096
|
| 120 |
+
- training.save_strategy=epoch
|
| 121 |
+
- training.push_to_hub=true
|
| 122 |
+
- training.hub_model_id=twanghcmut/llama-mixlora-2
|
| 123 |
+
- training.hub_strategy=end
|
| 124 |
+
- model.mixlora_config.moe_top_k=1
|
| 125 |
+
- paths.output_dir=/research
|
| 126 |
+
- eval.harness.tasks=[hellaswag]
|
| 127 |
+
- eval.load_model_path=null
|
| 128 |
+
job:
|
| 129 |
+
name: train_llama_mixlora
|
| 130 |
+
chdir: null
|
| 131 |
+
override_dirname: dataset.dataset_usage_percentage=0.1,dataset.max_length=4096,eval.harness.tasks=[hellaswag],eval.load_model_path=null,model.mixlora_config.moe_top_k=1,paths.output_dir=/research,training.hub_model_id=twanghcmut/llama-mixlora-2,training.hub_strategy=end,training.num_epochs=2,training.per_device_eval_batch_size=12,training.per_device_train_batch_size=12,training.push_to_hub=true,training.save_strategy=epoch
|
| 132 |
+
id: ???
|
| 133 |
+
num: ???
|
| 134 |
+
config_name: train_llama_mixlora
|
| 135 |
+
env_set: {}
|
| 136 |
+
env_copy: []
|
| 137 |
+
config:
|
| 138 |
+
override_dirname:
|
| 139 |
+
kv_sep: '='
|
| 140 |
+
item_sep: ','
|
| 141 |
+
exclude_keys: []
|
| 142 |
+
runtime:
|
| 143 |
+
version: 1.3.2
|
| 144 |
+
version_base: '1.3'
|
| 145 |
+
cwd: /workspace
|
| 146 |
+
config_sources:
|
| 147 |
+
- path: hydra.conf
|
| 148 |
+
schema: pkg
|
| 149 |
+
provider: hydra
|
| 150 |
+
- path: /workspace/configs
|
| 151 |
+
schema: file
|
| 152 |
+
provider: main
|
| 153 |
+
- path: ''
|
| 154 |
+
schema: structured
|
| 155 |
+
provider: schema
|
| 156 |
+
output_dir: /workspace/outputs/2025-11-22/13-09-56
|
| 157 |
+
choices:
|
| 158 |
+
training: llama_sft
|
| 159 |
+
dataset: alpaca_cleaned
|
| 160 |
+
model: llama2_7b_mixlora
|
| 161 |
+
hydra/env: default
|
| 162 |
+
hydra/callbacks: null
|
| 163 |
+
hydra/job_logging: default
|
| 164 |
+
hydra/hydra_logging: default
|
| 165 |
+
hydra/hydra_help: default
|
| 166 |
+
hydra/help: default
|
| 167 |
+
hydra/sweeper: basic
|
| 168 |
+
hydra/launcher: basic
|
| 169 |
+
hydra/output: default
|
| 170 |
+
verbose: false
|
2025-11-22/13-09-56/.hydra/overrides.yaml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- training.num_epochs=2
|
| 2 |
+
- training.per_device_train_batch_size=12
|
| 3 |
+
- training.per_device_eval_batch_size=12
|
| 4 |
+
- dataset.dataset_usage_percentage=0.1
|
| 5 |
+
- dataset.max_length=4096
|
| 6 |
+
- training.save_strategy=epoch
|
| 7 |
+
- training.push_to_hub=true
|
| 8 |
+
- training.hub_model_id=twanghcmut/llama-mixlora-2
|
| 9 |
+
- training.hub_strategy=end
|
| 10 |
+
- model.mixlora_config.moe_top_k=1
|
| 11 |
+
- paths.output_dir=/research
|
| 12 |
+
- eval.harness.tasks=[hellaswag]
|
| 13 |
+
- eval.load_model_path=null
|
2025-11-22/13-09-56/train_llama_mixlora.log
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[2025-11-22 13:10:41,337][accelerate.utils.modeling][INFO] - We will use 90% of the memory on device 0 for storing the model, and 10% for the buffer to avoid OOM. You can set `max_memory` in to a higher value to use more memory (at your own risk).
|
| 2 |
+
[2025-11-22 13:10:49,129][accelerate.utils.other][WARNING] - Detected kernel version 4.4.0, which is below the recommended minimum of 5.5.0; this can cause the process to hang. It is recommended to upgrade the kernel to the minimum version or higher.
|
config.json
CHANGED
|
@@ -22,7 +22,9 @@
|
|
| 22 |
"cross_attention_hidden_size": null,
|
| 23 |
"add_cross_attention": false,
|
| 24 |
"tie_encoder_decoder": false,
|
| 25 |
-
"architectures":
|
|
|
|
|
|
|
| 26 |
"finetuning_task": null,
|
| 27 |
"id2label": {
|
| 28 |
"0": "LABEL_0",
|
|
|
|
| 22 |
"cross_attention_hidden_size": null,
|
| 23 |
"add_cross_attention": false,
|
| 24 |
"tie_encoder_decoder": false,
|
| 25 |
+
"architectures": [
|
| 26 |
+
"LlamaMixLoRAForCausalLM"
|
| 27 |
+
],
|
| 28 |
"finetuning_task": null,
|
| 29 |
"id2label": {
|
| 30 |
"0": "LABEL_0",
|
tokenizer.json
CHANGED
|
@@ -2,18 +2,11 @@
|
|
| 2 |
"version": "1.0",
|
| 3 |
"truncation": {
|
| 4 |
"direction": "Right",
|
| 5 |
-
"max_length":
|
| 6 |
"strategy": "LongestFirst",
|
| 7 |
"stride": 0
|
| 8 |
},
|
| 9 |
-
"padding":
|
| 10 |
-
"strategy": "BatchLongest",
|
| 11 |
-
"direction": "Right",
|
| 12 |
-
"pad_to_multiple_of": null,
|
| 13 |
-
"pad_id": 2,
|
| 14 |
-
"pad_type_id": 0,
|
| 15 |
-
"pad_token": "</s>"
|
| 16 |
-
},
|
| 17 |
"added_tokens": [
|
| 18 |
{
|
| 19 |
"id": 0,
|
|
|
|
| 2 |
"version": "1.0",
|
| 3 |
"truncation": {
|
| 4 |
"direction": "Right",
|
| 5 |
+
"max_length": 128,
|
| 6 |
"strategy": "LongestFirst",
|
| 7 |
"stride": 0
|
| 8 |
},
|
| 9 |
+
"padding": null,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
"added_tokens": [
|
| 11 |
{
|
| 12 |
"id": 0,
|