Instructions to use canxp-ai/maplept2-reasoning-477fb32c with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use canxp-ai/maplept2-reasoning-477fb32c with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("empero-ai/Qwythos-9B-Claude-Mythos-5-1M") model = PeftModel.from_pretrained(base_model, "canxp-ai/maplept2-reasoning-477fb32c") - Notebooks
- Google Colab
- Kaggle
CanXP training job 477fb32c
Browse files- .gitattributes +1 -0
- LICENSE_NOTICE.txt +19 -0
- README.md +57 -0
- adapter_config.json +53 -0
- adapter_model.safetensors +3 -0
- chat_template.jinja +4 -0
- tokenizer.json +3 -0
- tokenizer_config.json +37 -0
.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 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
LICENSE_NOTICE.txt
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Model License Notice
|
| 2 |
+
====================
|
| 3 |
+
|
| 4 |
+
This fine-tuned model is derived from the base model:
|
| 5 |
+
|
| 6 |
+
empero-ai/Qwythos-9B-Claude-Mythos-5-1M (MaplePT-Reasoning base — Qwythos 9B (Frontier Reasoning))
|
| 7 |
+
|
| 8 |
+
The base model is distributed under the following license:
|
| 9 |
+
|
| 10 |
+
Apache-2.0
|
| 11 |
+
https://www.apache.org/licenses/LICENSE-2.0
|
| 12 |
+
|
| 13 |
+
Your fine-tuned weights and adapters inherit the obligations of this license.
|
| 14 |
+
By distributing or deploying this model you agree to comply with the upstream
|
| 15 |
+
license terms (including any attribution, redistribution, gating, or
|
| 16 |
+
acceptable-use policies).
|
| 17 |
+
|
| 18 |
+
Customer-provided training data is not included in this artifact bundle. The
|
| 19 |
+
trained weights/adapters may, however, encode information from that data.
|
README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
base_model: empero-ai/Qwythos-9B-Claude-Mythos-5-1M
|
| 4 |
+
tags:
|
| 5 |
+
- canxp
|
| 6 |
+
- lora
|
| 7 |
+
- peft
|
| 8 |
+
- lora
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# maplept2-reasoning
|
| 12 |
+
|
| 13 |
+
Fine-tuned by **CanXP AI** ([canxp.ai](https://canxp.ai)) from base model
|
| 14 |
+
`empero-ai/Qwythos-9B-Claude-Mythos-5-1M` using LORA.
|
| 15 |
+
|
| 16 |
+
## Quick start (Python)
|
| 17 |
+
|
| 18 |
+
```bash
|
| 19 |
+
pip install transformers peft torch
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
```python
|
| 23 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 24 |
+
from peft import PeftModel
|
| 25 |
+
|
| 26 |
+
base = "empero-ai/Qwythos-9B-Claude-Mythos-5-1M"
|
| 27 |
+
adapter = "canxp-ai/maplept2-reasoning-477fb32c"
|
| 28 |
+
|
| 29 |
+
tokenizer = AutoTokenizer.from_pretrained(base, trust_remote_code=True)
|
| 30 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 31 |
+
base, torch_dtype="bfloat16", device_map="auto", trust_remote_code=True
|
| 32 |
+
)
|
| 33 |
+
model = PeftModel.from_pretrained(model, adapter)
|
| 34 |
+
|
| 35 |
+
prompt = "Hello!"
|
| 36 |
+
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
| 37 |
+
out = model.generate(**inputs, max_new_tokens=200)
|
| 38 |
+
print(tokenizer.decode(out[0], skip_special_tokens=True))
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
## CLI download
|
| 42 |
+
|
| 43 |
+
```bash
|
| 44 |
+
pip install -U "huggingface_hub[cli]"
|
| 45 |
+
huggingface-cli download canxp-ai/maplept2-reasoning-477fb32c --local-dir ./maplept2-reasoning
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## Training details
|
| 49 |
+
|
| 50 |
+
- Base model: `empero-ai/Qwythos-9B-Claude-Mythos-5-1M`
|
| 51 |
+
- Method: LORA
|
| 52 |
+
- Epochs: 3
|
| 53 |
+
- Context length: 4096
|
| 54 |
+
- Validation split: 0.05
|
| 55 |
+
|
| 56 |
+
This adapter inherits the upstream license of the base model. See
|
| 57 |
+
LICENSE_NOTICE.txt in this repo for details.
|
adapter_config.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "empero-ai/Qwythos-9B-Claude-Mythos-5-1M",
|
| 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": null,
|
| 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": 512,
|
| 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": 256,
|
| 30 |
+
"rank_pattern": {},
|
| 31 |
+
"revision": null,
|
| 32 |
+
"target_modules": [
|
| 33 |
+
"in_proj_a",
|
| 34 |
+
"in_proj_qkv",
|
| 35 |
+
"o_proj",
|
| 36 |
+
"k_proj",
|
| 37 |
+
"in_proj_b",
|
| 38 |
+
"v_proj",
|
| 39 |
+
"q_proj",
|
| 40 |
+
"gate_proj",
|
| 41 |
+
"out_proj",
|
| 42 |
+
"in_proj_z",
|
| 43 |
+
"down_proj",
|
| 44 |
+
"up_proj"
|
| 45 |
+
],
|
| 46 |
+
"target_parameters": [],
|
| 47 |
+
"task_type": "CAUSAL_LM",
|
| 48 |
+
"trainable_token_indices": null,
|
| 49 |
+
"use_bdlora": null,
|
| 50 |
+
"use_dora": false,
|
| 51 |
+
"use_qalora": false,
|
| 52 |
+
"use_rslora": false
|
| 53 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0479178d1cbd60cd2a3ef943a9f50d8a090f522a92c6719f224042036f2bde88
|
| 3 |
+
size 2769890408
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '
|
| 2 |
+
' + message['content'] + '<|im_end|>' + '
|
| 3 |
+
'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
|
| 4 |
+
' }}{% endif %}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:639e352c0f904c1875d448ebed6f6faac005fd3eb58393b7f1fb3ff044e5ca03
|
| 3 |
+
size 19989510
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"audio_bos_token": "<|audio_start|>",
|
| 4 |
+
"audio_eos_token": "<|audio_end|>",
|
| 5 |
+
"audio_token": "<|audio_pad|>",
|
| 6 |
+
"backend": "tokenizers",
|
| 7 |
+
"bos_token": null,
|
| 8 |
+
"clean_up_tokenization_spaces": false,
|
| 9 |
+
"eos_token": "<|im_end|>",
|
| 10 |
+
"errors": "replace",
|
| 11 |
+
"image_token": "<|image_pad|>",
|
| 12 |
+
"is_local": false,
|
| 13 |
+
"local_files_only": false,
|
| 14 |
+
"max_length": null,
|
| 15 |
+
"model_max_length": 262144,
|
| 16 |
+
"model_specific_special_tokens": {
|
| 17 |
+
"audio_bos_token": "<|audio_start|>",
|
| 18 |
+
"audio_eos_token": "<|audio_end|>",
|
| 19 |
+
"audio_token": "<|audio_pad|>",
|
| 20 |
+
"image_token": "<|image_pad|>",
|
| 21 |
+
"video_token": "<|video_pad|>",
|
| 22 |
+
"vision_bos_token": "<|vision_start|>",
|
| 23 |
+
"vision_eos_token": "<|vision_end|>"
|
| 24 |
+
},
|
| 25 |
+
"pad_to_multiple_of": null,
|
| 26 |
+
"pad_token": "<|endoftext|>",
|
| 27 |
+
"pad_token_type_id": 0,
|
| 28 |
+
"padding_side": "left",
|
| 29 |
+
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
| 30 |
+
"processor_class": "Qwen3VLProcessor",
|
| 31 |
+
"split_special_tokens": false,
|
| 32 |
+
"tokenizer_class": "TokenizersBackend",
|
| 33 |
+
"unk_token": null,
|
| 34 |
+
"video_token": "<|video_pad|>",
|
| 35 |
+
"vision_bos_token": "<|vision_start|>",
|
| 36 |
+
"vision_eos_token": "<|vision_end|>"
|
| 37 |
+
}
|