GAMA Global 32B QLoRA adapter (v1, private)
Browse filesFiles changed (8)
- .gitattributes+1
- README.mdAdded+54
- adapter_config.jsonAdded+51
- adapter_model.safetensorsAdded+3
- chat_template.jinjaAdded+54
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+31
- training_args.binAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354---base_model: Qwen/Qwen2.5-32B-Instructlibrary_name: peftlicense: apache-2.0language: - bs - entags: - qlora - lora - gama - private---
# GAMA Global 32B (QLoRA adapter)
Private team adapter for **Qwen2.5-32B-Instruct**, trained with QLoRA (4-bit NF4) on 2× NVIDIA L40S.
## Training- Base: `unsloth/Qwen2.5-32B-Instruct-bnb-4bit` (4-bit, 19.2 GB)- Method: QLoRA, LoRA r=32, alpha=64, dropout 0.05, all linear layers- Data: 24,987 curated generic chat examples (Bosnian + English), anonymized; no internal company data- 2 epochs, seq 1536, packing, global batch 16, lr 1e-4, paged AdamW 8-bit- Loss: 1.87 → 0.81
## Evaluation (greedy, internal sets)| Set | Score ||---|---|| Bosnian generic (43) | **40/43 = 93.0%** || English general (30) | **29/30 = 96.7%** || Internal domain golden (101) | **87/101 = 86.1%** |
## Usage```pythonfrom transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfigfrom peft import PeftModelimport torch
base = "Qwen/Qwen2.5-32B-Instruct"tok = AutoTokenizer.from_pretrained(base)bnb = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4", bnb_4bit_compute_dtype=torch.bfloat16)model = AutoModelForCausalLM.from_pretrained(base, quantization_config=bnb, device_map="auto")model = PeftModel.from_pretrained(model, "BH-Language-AI/gama-global-32b")```
## Limitations- 4-bit base was used for training; merge into bf16 base for best quality if deploying.- Not a safety-aligned model; add your own guardrails.- Evaluated on small internal sets (43/30/101), not public benchmarks.- Base model license: Apache-2.0 (Qwen2.5-32B-Instruct).
## LicenseAdapter: Apache-2.0. Base model: Apache-2.0.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "alora_invocation_tokens": null, "alpha_pattern": {}, "arrow_config": null, "auto_mapping": null, "base_model_name_or_path": "unsloth/Qwen2.5-32B-Instruct-bnb-4bit", "bias": "none", "corda_config": null, "ensure_weight_tying": false, "eva_config": null, "exclude_modules": null, "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "kasa_config": null, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 64, "lora_bias": false, "lora_dropout": 0.05, "lora_ga_config": null, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "monteclora_config": null, "peft_type": "LORA", "peft_version": "0.21.3", "qalora_group_size": 16, "r": 32, "rank_pattern": {}, "revision": null, "target_modules": [ "v_proj", "gate_proj", "k_proj", "down_proj", "o_proj", "up_proj", "q_proj" ], "target_parameters": null, "task_type": "CAUSAL_LM", "trainable_token_indices": null, "use_bdlora": null, "use_dora": false, "use_qalora": false, "use_rslora": false, "velora_config": null}123version https://git-lfs.github.com/spec/v1oid sha256:d491894d1cf7b8e6a50a0710f8702f4b41481896dfc789d37a60e0148a0f56casize 1073863208123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{%- if tools %} {{- '<|im_start|>system\n' }} {%- if messages[0]['role'] == 'system' %} {{- messages[0]['content'] }} {%- else %} {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }} {%- endif %} {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }} {%- for tool in tools %} {{- "\n" }} {{- tool | tojson }} {%- endfor %} {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}{%- else %} {%- if messages[0]['role'] == 'system' %} {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }} {%- else %} {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }} {%- endif %}{%- endif %}{%- for message in messages %} {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %} {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {{- '<|im_start|>' + message.role }} {%- if message.content %} {{- '\n' + message.content }} {%- endif %} {%- for tool_call in message.tool_calls %} {%- if tool_call.function is defined %} {%- set tool_call = tool_call.function %} {%- endif %} {{- '\n<tool_call>\n{"name": "' }} {{- tool_call.name }} {{- '", "arguments": ' }} {{- tool_call.arguments | tojson }} {{- '}\n</tool_call>' }} {%- endfor %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- message.content }} {{- '\n</tool_response>' }} {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} {{- '<|im_end|>\n' }} {%- endif %} {%- endif %}{%- endfor %}{%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }}{%- endif %}123version https://git-lfs.github.com/spec/v1oid sha256:ea43b288542655d72d632195ab9b58ca2cd9532c292bf6667827ce899ad196bcsize 1142208212345678910111213141516171819202122232425262728293031{ "add_prefix_space": false, "backend": "tokenizers", "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "extra_special_tokens": [ "<|im_start|>", "<|im_end|>", "<|object_ref_start|>", "<|object_ref_end|>", "<|box_start|>", "<|box_end|>", "<|quad_start|>", "<|quad_end|>", "<|vision_start|>", "<|vision_end|>", "<|vision_pad|>", "<|image_pad|>", "<|video_pad|>" ], "is_local": false, "local_files_only": false, "model_max_length": 131072, "pad_token": "<|PAD_TOKEN|>", "padding_side": "left", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null}123version https://git-lfs.github.com/spec/v1oid sha256:331112ea038c9979af82172d0731d18bf83bc4abeb5dca081b35549943090743size 5713.gitattributes+1
README.mdAdded+54
adapter_config.jsonAdded+51
adapter_model.safetensorsAdded+3
chat_template.jinjaAdded+54
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+31
training_args.binAdded+3