Instructions to use JosephNa/IdinnoLab_LLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use JosephNa/IdinnoLab_LLM with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Add llama Design11 adapter; no dataset files
Browse files- .gitattributes +1 -0
- Llama-3-Design11-LoRA/LICENSE +117 -0
- Llama-3-Design11-LoRA/NOTICE +2 -0
- Llama-3-Design11-LoRA/README.md +82 -0
- Llama-3-Design11-LoRA/adapter_config.json +48 -0
- Llama-3-Design11-LoRA/adapter_model.safetensors +3 -0
- Llama-3-Design11-LoRA/chat_template.jinja +5 -0
- Llama-3-Design11-LoRA/tokenizer.json +3 -0
- Llama-3-Design11-LoRA/tokenizer_config.json +15 -0
- README.md +55 -3
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Llama-3-Design11-LoRA/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
Llama-3-Design11-LoRA/LICENSE
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
META LLAMA 3 COMMUNITY LICENSE AGREEMENT
|
| 2 |
+
Meta Llama 3 Version Release Date: April 18, 2024
|
| 3 |
+
|
| 4 |
+
“Agreement” means the terms and conditions for use, reproduction, distribution and modification of the
|
| 5 |
+
Llama Materials set forth herein.
|
| 6 |
+
|
| 7 |
+
“Documentation” means the specifications, manuals and documentation accompanying Meta Llama 3
|
| 8 |
+
distributed by Meta at https://llama.meta.com/get-started/.
|
| 9 |
+
|
| 10 |
+
“Licensee” or “you” means you, or your employer or any other person or entity (if you are entering into
|
| 11 |
+
this Agreement on such person or entity’s behalf), of the age required under applicable laws, rules or
|
| 12 |
+
regulations to provide legal consent and that has legal authority to bind your employer or such other
|
| 13 |
+
person or entity if you are entering in this Agreement on their behalf.
|
| 14 |
+
|
| 15 |
+
“Meta Llama 3” means the foundational large language models and software and algorithms, including
|
| 16 |
+
machine-learning model code, trained model weights, inference-enabling code, training-enabling code,
|
| 17 |
+
fine-tuning enabling code and other elements of the foregoing distributed by Meta at
|
| 18 |
+
https://llama.meta.com/llama-downloads.
|
| 19 |
+
|
| 20 |
+
“Llama Materials” means, collectively, Meta’s proprietary Meta Llama 3 and Documentation (and any
|
| 21 |
+
portion thereof) made available under this Agreement.
|
| 22 |
+
|
| 23 |
+
“Meta” or “we” means Meta Platforms Ireland Limited (if you are located in or, if you are an entity, your
|
| 24 |
+
principal place of business is in the EEA or Switzerland) and Meta Platforms, Inc. (if you are located
|
| 25 |
+
outside of the EEA or Switzerland).
|
| 26 |
+
|
| 27 |
+
By clicking “I Accept” below or by using or distributing any portion or element of the Llama Materials,
|
| 28 |
+
you agree to be bound by this Agreement.
|
| 29 |
+
|
| 30 |
+
1. License Rights and Redistribution.
|
| 31 |
+
|
| 32 |
+
a. Grant of Rights. You are granted a non-exclusive, worldwide, non-transferable and royalty-free
|
| 33 |
+
limited license under Meta’s intellectual property or other rights owned by Meta embodied in the Llama
|
| 34 |
+
Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the
|
| 35 |
+
Llama Materials.
|
| 36 |
+
|
| 37 |
+
b. Redistribution and Use.
|
| 38 |
+
|
| 39 |
+
i. If you distribute or make available the Llama Materials (or any derivative works
|
| 40 |
+
thereof), or a product or service that uses any of them, including another AI model, you shall (A) provide
|
| 41 |
+
a copy of this Agreement with any such Llama Materials; and (B) prominently display “Built with Meta
|
| 42 |
+
Llama 3” on a related website, user interface, blogpost, about page, or product documentation. If you
|
| 43 |
+
use the Llama Materials to create, train, fine tune, or otherwise improve an AI model, which is
|
| 44 |
+
distributed or made available, you shall also include “Llama 3” at the beginning of any such AI model
|
| 45 |
+
name.
|
| 46 |
+
|
| 47 |
+
ii. If you receive Llama Materials, or any derivative works thereof, from a Licensee as part
|
| 48 |
+
of an integrated end user product, then Section 2 of this Agreement will not apply to you.
|
| 49 |
+
|
| 50 |
+
iii. You must retain in all copies of the Llama Materials that you distribute the following
|
| 51 |
+
attribution notice within a “Notice” text file distributed as a part of such copies: “Meta Llama 3 is
|
| 52 |
+
licensed under the Meta Llama 3 Community License, Copyright © Meta Platforms, Inc. All Rights
|
| 53 |
+
Reserved.”
|
| 54 |
+
|
| 55 |
+
iv. Your use of the Llama Materials must comply with applicable laws and regulations
|
| 56 |
+
(including trade compliance laws and regulations) and adhere to the Acceptable Use Policy for the Llama
|
| 57 |
+
Materials (available at https://llama.meta.com/llama3/use-policy), which is hereby incorporated by
|
| 58 |
+
reference into this Agreement.
|
| 59 |
+
|
| 60 |
+
v. You will not use the Llama Materials or any output or results of the Llama Materials to
|
| 61 |
+
improve any other large language model (excluding Meta Llama 3 or derivative works thereof).
|
| 62 |
+
|
| 63 |
+
2. Additional Commercial Terms. If, on the Meta Llama 3 version release date, the monthly active users
|
| 64 |
+
of the products or services made available by or for Licensee, or Licensee’s affiliates, is greater than 700
|
| 65 |
+
million monthly active users in the preceding calendar month, you must request a license from Meta,
|
| 66 |
+
which Meta may grant to you in its sole discretion, and you are not authorized to exercise any of the
|
| 67 |
+
rights under this Agreement unless or until Meta otherwise expressly grants you such rights.
|
| 68 |
+
|
| 69 |
+
3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE LLAMA MATERIALS AND ANY
|
| 70 |
+
OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OF
|
| 71 |
+
ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF ANY KIND, BOTH EXPRESS AND IMPLIED,
|
| 72 |
+
INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT,
|
| 73 |
+
MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR
|
| 74 |
+
DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE LLAMA MATERIALS AND
|
| 75 |
+
ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND
|
| 76 |
+
RESULTS.
|
| 77 |
+
|
| 78 |
+
4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF
|
| 79 |
+
LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING
|
| 80 |
+
OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL,
|
| 81 |
+
INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED
|
| 82 |
+
OF THE POSSIBILITY OF ANY OF THE FOREGOING.
|
| 83 |
+
|
| 84 |
+
5. Intellectual Property.
|
| 85 |
+
|
| 86 |
+
a. No trademark licenses are granted under this Agreement, and in connection with the Llama
|
| 87 |
+
Materials, neither Meta nor Licensee may use any name or mark owned by or associated with the other
|
| 88 |
+
or any of its affiliates, except as required for reasonable and customary use in describing and
|
| 89 |
+
redistributing the Llama Materials or as set forth in this Section 5(a). Meta hereby grants you a license to
|
| 90 |
+
use “Llama 3” (the “Mark”) solely as required to comply with the last sentence of Section 1.b.i. You will
|
| 91 |
+
comply with Meta’s brand guidelines (currently accessible at
|
| 92 |
+
https://about.meta.com/brand/resources/meta/company-brand/ ). All goodwill arising out of your use
|
| 93 |
+
of the Mark will inure to the benefit of Meta.
|
| 94 |
+
|
| 95 |
+
b. Subject to Meta’s ownership of Llama Materials and derivatives made by or for Meta, with
|
| 96 |
+
respect to any derivative works and modifications of the Llama Materials that are made by you, as
|
| 97 |
+
between you and Meta, you are and will be the owner of such derivative works and modifications.
|
| 98 |
+
|
| 99 |
+
c. If you institute litigation or other proceedings against Meta or any entity (including a
|
| 100 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Llama Materials or Meta Llama 3 outputs or
|
| 101 |
+
results, or any portion of any of the foregoing, constitutes infringement of intellectual property or other
|
| 102 |
+
rights owned or licensable by you, then any licenses granted to you under this Agreement shall
|
| 103 |
+
terminate as of the date such litigation or claim is filed or instituted. You will indemnify and hold
|
| 104 |
+
harmless Meta from and against any claim by any third party arising out of or related to your use or
|
| 105 |
+
distribution of the Llama Materials.
|
| 106 |
+
|
| 107 |
+
6. Term and Termination. The term of this Agreement will commence upon your acceptance of this
|
| 108 |
+
Agreement or access to the Llama Materials and will continue in full force and effect until terminated in
|
| 109 |
+
accordance with the terms and conditions herein. Meta may terminate this Agreement if you are in
|
| 110 |
+
breach of any term or condition of this Agreement. Upon termination of this Agreement, you shall delete
|
| 111 |
+
and cease use of the Llama Materials. Sections 3, 4 and 7 shall survive the termination of this
|
| 112 |
+
Agreement.
|
| 113 |
+
|
| 114 |
+
7. Governing Law and Jurisdiction. This Agreement will be governed and construed under the laws of
|
| 115 |
+
the State of California without regard to choice of law principles, and the UN Convention on Contracts
|
| 116 |
+
for the International Sale of Goods does not apply to this Agreement. The courts of California shall have
|
| 117 |
+
exclusive jurisdiction of any dispute arising out of this Agreement.
|
Llama-3-Design11-LoRA/NOTICE
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Built with Meta Llama 3
|
| 2 |
+
Meta Llama 3 is licensed under the Meta Llama 3 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.
|
Llama-3-Design11-LoRA/README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- ko
|
| 4 |
+
license: llama3
|
| 5 |
+
base_model: meta-llama/Meta-Llama-3-8B-Instruct
|
| 6 |
+
base_model_relation: adapter
|
| 7 |
+
library_name: peft
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
tags:
|
| 10 |
+
- lora
|
| 11 |
+
- qlora
|
| 12 |
+
- design-strategy
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Llama-3-Design11 Korean Design Strategy Adapter
|
| 16 |
+
|
| 17 |
+
evaluated_internal_test. This is a LoRA adapter, not standalone base weights.
|
| 18 |
+
|
| 19 |
+
## Training
|
| 20 |
+
|
| 21 |
+
Base commit: `8afb486c1db24fe5011ec46dfbe5b5dccdb575c2`. Eleven-sheet internal design strategy dataset:
|
| 22 |
+
2541 training examples, 341 validation examples.
|
| 23 |
+
QLoRA NF4-double, r=8, alpha=16, dropout=0.05,
|
| 24 |
+
seed=42, learning rate=0.0002, 3 epochs.
|
| 25 |
+
Only assistant completion tokens are used for training loss. Raw data is not distributed.
|
| 26 |
+
|
| 27 |
+
| Epoch | Validation loss |
|
| 28 |
+
|---|---|
|
| 29 |
+
| 1 | 1.108191 |
|
| 30 |
+
| 2 | 0.993451 |
|
| 31 |
+
| 3 | 0.978607 |
|
| 32 |
+
|
| 33 |
+
Validation loss is not an answer-quality score, and is not comparable across different tokenizers.
|
| 34 |
+
Best-validation checkpoint is selected without test scores.
|
| 35 |
+
|
| 36 |
+
## Paired Evaluation
|
| 37 |
+
|
| 38 |
+
| Variant | Unicode-token ROUGE-L macro | Character 3-gram F1 macro |
|
| 39 |
+
|---|---|---|
|
| 40 |
+
| base | 0.0258 | 0.0368 |
|
| 41 |
+
| epoch1 | 0.2120 | 0.2707 |
|
| 42 |
+
| final | 0.2492 | 0.3184 |
|
| 43 |
+
| best_validation | 0.2492 | 0.3184 |
|
| 44 |
+
|
| 45 |
+
Base, Epoch1, Final and Best-validation receive identical system/user prompts and greedy decoding.
|
| 46 |
+
The evaluator hashes prompt token IDs, pins the base revision, forbids missing-ID intersection scoring,
|
| 47 |
+
and reports micro, equally weighted sheet macro, and per-sheet diagnostics. Identical adapters reuse predictions.
|
| 48 |
+
Unicode-token ROUGE-L preserves Korean tokens; its tokenization differs from standard English ROUGE.
|
| 49 |
+
Lexical overlap measures reference similarity, not factuality, originality or design quality.
|
| 50 |
+
The legacy test split has already been inspected and is not an independent external benchmark.
|
| 51 |
+
Source-case grouping, expert DSQ assessment and human preference evaluation remain unverified/incomplete.
|
| 52 |
+
|
| 53 |
+
## Loading
|
| 54 |
+
|
| 55 |
+
```python
|
| 56 |
+
import torch
|
| 57 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 58 |
+
from peft import PeftModel
|
| 59 |
+
|
| 60 |
+
base = AutoModelForCausalLM.from_pretrained(
|
| 61 |
+
"meta-llama/Meta-Llama-3-8B-Instruct", revision="8afb486c1db24fe5011ec46dfbe5b5dccdb575c2",
|
| 62 |
+
dtype=torch.bfloat16, device_map="auto",
|
| 63 |
+
)
|
| 64 |
+
model = PeftModel.from_pretrained(base, "JosephNa/IdinnoLab_LLM", subfolder="Llama-3-Design11-LoRA")
|
| 65 |
+
tokenizer = AutoTokenizer.from_pretrained("JosephNa/IdinnoLab_LLM", subfolder="Llama-3-Design11-LoRA")
|
| 66 |
+
model.eval()
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
This BF16 loading example may require more VRAM than the NF4 evaluation setup.
|
| 70 |
+
Use the same Korean system instruction and task-specific instructions as training for controlled comparisons.
|
| 71 |
+
|
| 72 |
+
## Intended Use and Limitations
|
| 73 |
+
|
| 74 |
+
Internal Korean design strategy drafting with human review. Not authoritative advice on grant eligibility,
|
| 75 |
+
funding amounts, deadlines or institutional policy. Verify current rules independently.
|
| 76 |
+
No claim of independent benchmark performance or superior expert judgment is made.
|
| 77 |
+
|
| 78 |
+
## License and Data Governance
|
| 79 |
+
|
| 80 |
+
Base license: [llama3](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct/blob/main/LICENSE). Base-model license obligations still apply to this adapter.
|
| 81 |
+
Public distribution requires verification of data rights, privacy and model-license obligations.
|
| 82 |
+
Built with Meta Llama 3. Use a Llama-3-prefixed public repository name and include the upstream LICENSE and NOTICE.
|
Llama-3-Design11-LoRA/adapter_config.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "meta-llama/Meta-Llama-3-8B-Instruct",
|
| 7 |
+
"bias": "none",
|
| 8 |
+
"corda_config": null,
|
| 9 |
+
"ensure_weight_tying": false,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 16,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.05,
|
| 22 |
+
"lora_ga_config": null,
|
| 23 |
+
"megatron_config": null,
|
| 24 |
+
"megatron_core": "megatron.core",
|
| 25 |
+
"modules_to_save": null,
|
| 26 |
+
"peft_type": "LORA",
|
| 27 |
+
"peft_version": "0.19.1",
|
| 28 |
+
"qalora_group_size": 16,
|
| 29 |
+
"r": 8,
|
| 30 |
+
"rank_pattern": {},
|
| 31 |
+
"revision": "8afb486c1db24fe5011ec46dfbe5b5dccdb575c2",
|
| 32 |
+
"target_modules": [
|
| 33 |
+
"o_proj",
|
| 34 |
+
"gate_proj",
|
| 35 |
+
"q_proj",
|
| 36 |
+
"k_proj",
|
| 37 |
+
"up_proj",
|
| 38 |
+
"v_proj",
|
| 39 |
+
"down_proj"
|
| 40 |
+
],
|
| 41 |
+
"target_parameters": null,
|
| 42 |
+
"task_type": "CAUSAL_LM",
|
| 43 |
+
"trainable_token_indices": null,
|
| 44 |
+
"use_bdlora": null,
|
| 45 |
+
"use_dora": false,
|
| 46 |
+
"use_qalora": false,
|
| 47 |
+
"use_rslora": false
|
| 48 |
+
}
|
Llama-3-Design11-LoRA/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:08575cd962df8a0c989732d0e248ebc60f36fd391931f28d26a793eb0714826f
|
| 3 |
+
size 83945296
|
Llama-3-Design11-LoRA/chat_template.jinja
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>
|
| 2 |
+
|
| 3 |
+
'+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>
|
| 4 |
+
|
| 5 |
+
' }}{% endif %}
|
Llama-3-Design11-LoRA/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c5cf44023714fb39b05e71e425f8d7b92805ff73f7988b083b8c87f0bf87393
|
| 3 |
+
size 17209961
|
Llama-3-Design11-LoRA/tokenizer_config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<|begin_of_text|>",
|
| 4 |
+
"clean_up_tokenization_spaces": true,
|
| 5 |
+
"eos_token": "<|eot_id|>",
|
| 6 |
+
"is_local": true,
|
| 7 |
+
"local_files_only": true,
|
| 8 |
+
"model_input_names": [
|
| 9 |
+
"input_ids",
|
| 10 |
+
"attention_mask"
|
| 11 |
+
],
|
| 12 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 13 |
+
"pad_token": "<|eot_id|>",
|
| 14 |
+
"tokenizer_class": "TokenizersBackend"
|
| 15 |
+
}
|
README.md
CHANGED
|
@@ -1,3 +1,55 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- ko
|
| 4 |
+
library_name: peft
|
| 5 |
+
tags:
|
| 6 |
+
- lora
|
| 7 |
+
- design-strategy
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# IdinnoLab Korean Design Strategy Models
|
| 11 |
+
|
| 12 |
+
Private repository containing two independently trained LoRA adapters.
|
| 13 |
+
No datasets, questions, reference answers, generated answers, sample-level evaluation files,
|
| 14 |
+
training logs, optimizer states or credentials are distributed in this repository.
|
| 15 |
+
|
| 16 |
+
## Models
|
| 17 |
+
|
| 18 |
+
- `Llama-3-Design11-LoRA`: uploaded
|
| 19 |
+
- `Midm-Design11-LoRA`: pending evaluation
|
| 20 |
+
|
| 21 |
+
Each model folder contains its own adapter, tokenizer, model card and upstream license.
|
| 22 |
+
These are not standalone base models. There is no adapter at the repository root.
|
| 23 |
+
|
| 24 |
+
## Loading
|
| 25 |
+
|
| 26 |
+
```python
|
| 27 |
+
import torch
|
| 28 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 29 |
+
from peft import PeftConfig, PeftModel
|
| 30 |
+
|
| 31 |
+
repo = "JosephNa/IdinnoLab_LLM"
|
| 32 |
+
subfolder = "Llama-3-Design11-LoRA" # or "Midm-Design11-LoRA" once uploaded
|
| 33 |
+
config = PeftConfig.from_pretrained(repo, subfolder=subfolder)
|
| 34 |
+
base = AutoModelForCausalLM.from_pretrained(
|
| 35 |
+
config.base_model_name_or_path, revision=config.revision,
|
| 36 |
+
dtype=torch.bfloat16, device_map="auto",
|
| 37 |
+
)
|
| 38 |
+
model = PeftModel.from_pretrained(base, repo, subfolder=subfolder)
|
| 39 |
+
tokenizer = AutoTokenizer.from_pretrained(repo, subfolder=subfolder)
|
| 40 |
+
model.eval()
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
Private repository access and, for Llama, upstream base-model access are required.
|
| 44 |
+
This BF16 example may need more VRAM than NF4 quantized evaluation.
|
| 45 |
+
|
| 46 |
+
## Evaluation and Limitations
|
| 47 |
+
|
| 48 |
+
See each model card for aggregate internal-test diagnostics. Lexical similarity is not factual accuracy
|
| 49 |
+
or expert design quality. The legacy evaluation set is not an independent external benchmark.
|
| 50 |
+
Output-length limits and absent human scoring constrain any quality claim.
|
| 51 |
+
|
| 52 |
+
## Licenses
|
| 53 |
+
|
| 54 |
+
Built with Meta Llama 3. Llama-3-Design11-LoRA retains the Meta Llama 3 Community License and NOTICE.
|
| 55 |
+
Midm-Design11-LoRA retains the upstream Mi:dm MIT license. Review each folder's license separately.
|