Instructions to use nmk-kun/cwm-extended-adapters with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use nmk-kun/cwm-extended-adapters with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
add adapter cwm_fdm_idm_r1
Browse files
.gitattributes
CHANGED
|
@@ -38,3 +38,4 @@ cwm_cascade/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
| 38 |
cwm_fdm_oracle_r1/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 39 |
cwm_fdm_oracle_r2/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 40 |
cwm_gametick_stepover/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 38 |
cwm_fdm_oracle_r1/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 39 |
cwm_fdm_oracle_r2/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 40 |
cwm_gametick_stepover/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
cwm_fdm_idm_r1/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
cwm_fdm_idm_r1/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": "/home/t-nagupta/.cache/huggingface/hub/models--facebook--cwm/snapshots/1b572b04e7f9613bb8ea902fedff4a1ed887c573/",
|
| 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": 32,
|
| 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": 16,
|
| 30 |
+
"rank_pattern": {},
|
| 31 |
+
"revision": null,
|
| 32 |
+
"target_modules": [
|
| 33 |
+
"q_proj",
|
| 34 |
+
"up_proj",
|
| 35 |
+
"down_proj",
|
| 36 |
+
"o_proj",
|
| 37 |
+
"gate_proj",
|
| 38 |
+
"k_proj",
|
| 39 |
+
"v_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 |
+
}
|
cwm_fdm_idm_r1/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f10653e09feb1289bc429b01218cd82440f06f568de62e15165a561a742d8946
|
| 3 |
+
size 499243216
|
cwm_fdm_idm_r1/chat_template.jinja
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% set loop_messages=messages %}{%- set ns=namespace(last_query_index=-1) %}{%- for message in loop_messages[::-1] %}{%- set index=(loop_messages|length-1)-loop.index0 %}{%- if message.role=='user' %}{%- set ns.last_query_index=index %}{%- break %}{%- endif %}{%- endfor %}{% for message in loop_messages %}{%- set loop_index=loop.index0 %}{%- set content=message['content']|trim %}{%- if message.role=='assistant' %}{%- set reasoning_content='' %}{%- if '<think>
|
| 2 |
+
' in content and '</think>' in content %}{%- set reasoning_content=content.split('</think>')[0].split('<think>
|
| 3 |
+
')[-1].strip() %}{%- set content=content.split('</think>')[-1].lstrip() %}{%- endif %}{%- if loop_index>ns.last_query_index or preserve_previous_think is not defined or preserve_previous_think is true %}{%- if loop_index==0 %}{{ bos_token }}{%- endif %}{{ '<|start_header_id|>assistant<|end_header_id|>
|
| 4 |
+
|
| 5 |
+
' }}{%- if reasoning_content %}{{ '<think>
|
| 6 |
+
' }}{{ reasoning_content }}{{ '</think>' }}{%- endif %}{{ content }}<|eot_id|>{%- else %}{%- if loop_index==0 %}{{ bos_token }}{%- endif %}{{ '<|start_header_id|>assistant<|end_header_id|>
|
| 7 |
+
|
| 8 |
+
' }}{{ content }}<|eot_id|>{%- endif %}{%- else %}{%- if loop_index==0 %}{{ bos_token }}{%- endif %}<|start_header_id|>{{ message.role }}{{ '<|end_header_id|>
|
| 9 |
+
|
| 10 |
+
' }}{{ content }}<|eot_id|>{%- endif %}{%- endfor %}{%- if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>
|
| 11 |
+
|
| 12 |
+
' }}{%- if enable_thinking is not defined or enable_thinking is true %}{{ '<think>
|
| 13 |
+
' }}{%- endif %}{%- endif %}
|
cwm_fdm_idm_r1/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ce6c1030d1247437cf3e2d197c37f3ab4dad08113c7a9956dae6db15479e0eb
|
| 3 |
+
size 17208464
|
cwm_fdm_idm_r1/tokenizer_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<|begin_of_text|>",
|
| 4 |
+
"clean_up_tokenization_spaces": false,
|
| 5 |
+
"eos_token": "<|end_of_text|>",
|
| 6 |
+
"is_local": true,
|
| 7 |
+
"local_files_only": false,
|
| 8 |
+
"model_input_names": [
|
| 9 |
+
"input_ids",
|
| 10 |
+
"attention_mask"
|
| 11 |
+
],
|
| 12 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 13 |
+
"tokenizer_class": "TokenizersBackend"
|
| 14 |
+
}
|