初始化项目,由ModelHub XC社区提供模型

Model: prithivMLmods/SmolLM2-Math-IIO-1.7B-Instruct
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-06-03 05:22:12 +08:00
commit c4a00f577e
11 changed files with 294188 additions and 0 deletions

36
.gitattributes vendored Normal file
View File

@@ -0,0 +1,36 @@
*.7z filter=lfs diff=lfs merge=lfs -text
*.arrow filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.ckpt filter=lfs diff=lfs merge=lfs -text
*.ftz filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.h5 filter=lfs diff=lfs merge=lfs -text
*.joblib filter=lfs diff=lfs merge=lfs -text
*.lfs.* filter=lfs diff=lfs merge=lfs -text
*.mlmodel filter=lfs diff=lfs merge=lfs -text
*.model filter=lfs diff=lfs merge=lfs -text
*.msgpack filter=lfs diff=lfs merge=lfs -text
*.npy filter=lfs diff=lfs merge=lfs -text
*.npz filter=lfs diff=lfs merge=lfs -text
*.onnx filter=lfs diff=lfs merge=lfs -text
*.ot filter=lfs diff=lfs merge=lfs -text
*.parquet filter=lfs diff=lfs merge=lfs -text
*.pb filter=lfs diff=lfs merge=lfs -text
*.pickle filter=lfs diff=lfs merge=lfs -text
*.pkl filter=lfs diff=lfs merge=lfs -text
*.pt filter=lfs diff=lfs merge=lfs -text
*.pth filter=lfs diff=lfs merge=lfs -text
*.rar filter=lfs diff=lfs merge=lfs -text
*.safetensors filter=lfs diff=lfs merge=lfs -text
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
*.tar.* filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tflite filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.wasm filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*tfevents* filter=lfs diff=lfs merge=lfs -text
pytorch_model.bin filter=lfs diff=lfs merge=lfs -text

68
README.md Normal file
View File

@@ -0,0 +1,68 @@
---
license: creativeml-openrail-m
datasets:
- prithivMLmods/Math-IIO-68K-Mini
language:
- en
base_model:
- HuggingFaceTB/SmolLM2-1.7B-Instruct
pipeline_tag: text-generation
library_name: transformers
tags:
- safetensors
- pytorch
- llama
- trl
- ollama
- llama-cpp
- math
- instruct
---
### SmolLM2-Math-IIO-1.7B-Instruct
The **SmolLM2-Math-IIO-1.7B-Instruct** model is a fine-tuned variant of the **SmolLM2-1.7B** architecture, optimized for mathematical instruction and reasoning tasks. It is particularly suited for applications that require mathematical problem-solving, logical inference, and detailed step-by-step explanations.
| File Name | Size | Description | Upload Status |
|----------------------------------------|------------|------------------------------------------------|----------------|
| `.gitattributes` | 1.52 kB | Git attributes configuration file | Uploaded |
| `README.md` | 287 Bytes | Updated README file | Updated |
| `config.json` | 940 Bytes | Model configuration settings | Uploaded |
| `generation_config.json` | 162 Bytes | Generation-specific configurations | Uploaded |
| `merges.txt` | 515 kB | Merging information for tokenization | Uploaded |
| `pytorch_model.bin` | 3.42 GB | Full model weights (PyTorch format) | Uploaded (LFS) |
| `special_tokens_map.json` | 572 Bytes | Mapping for special tokens used by the model | Uploaded |
| `tokenizer.json` | 3.77 MB | Tokenizer configuration and vocabulary | Uploaded |
| `tokenizer_config.json` | 3.95 kB | Tokenizer configuration for loading and usage | Uploaded |
| `vocab.json` | 801 kB | Vocabulary for the tokenizer | Uploaded |
### **Key Features:**
1. **Math-Focused Capabilities:**
This model is fine-tuned to handle a wide range of mathematical queries, from simple arithmetic to complex equations and mathematical proofs.
2. **Instruction-Tuned:**
Specifically trained to follow structured queries and deliver clear, coherent outputs based on instructions, ensuring high-quality, relevant responses to prompts.
3. **Tokenizer & Custom Tokens:**
Includes a robust tokenizer configuration with support for mathematical notation, custom tokens, and an extended vocabulary for accurate understanding and output generation.
---
### **Training Details:**
- **Base Model:** [SmolLM2-1.7B](https://huggingface.co/HuggingFaceTB/SmolLM2-1.7B-Instruct)
- **Dataset:** Trained on **Math-IIO-68K-Mini**, a dataset focused on mathematical instructions and logic-based queries, with a total of 68.8k examples.
### **Capabilities:**
- **Mathematical Problem-Solving:** Solves and explains complex mathematical problems, including algebra, calculus, and more advanced topics.
- **Instruction-Following:** Adheres to structured inputs and outputs, making it effective for generating step-by-step solutions.
- **Text Generation:** Capable of generating mathematical proofs, explanations, and educational content tailored to various user queries.
---
### **Usage Instructions:**
1. **Model Setup:** Download all model files and ensure the PyTorch model weights and tokenizer configurations are included.
2. **Inference:** Load the model in a Python environment using frameworks like PyTorch or Hugging Face's Transformers.
3. **Customization:** Configure the model with the `config.json` and `generation_config.json` files for optimal performance during inference.
---

38
config.json Normal file
View File

@@ -0,0 +1,38 @@
{
"_name_or_path": "HuggingFaceTB/SmolLM2-1.7B-Instruct",
"architectures": [
"LlamaForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"bos_token_id": 1,
"eos_token_id": 2,
"head_dim": 64,
"hidden_act": "silu",
"hidden_size": 2048,
"initializer_range": 0.02,
"intermediate_size": 8192,
"max_position_embeddings": 8192,
"mlp_bias": false,
"model_type": "llama",
"num_attention_heads": 32,
"num_hidden_layers": 24,
"num_key_value_heads": 32,
"pad_token_id": 0,
"pretraining_tp": 1,
"rms_norm_eps": 1e-05,
"rope_scaling": null,
"rope_theta": 130000,
"tie_word_embeddings": true,
"torch_dtype": "float16",
"transformers.js_config": {
"kv_cache_dtype": {
"fp16": "float16",
"q4f16": "float16"
}
},
"transformers_version": "4.46.2",
"unsloth_version": "2024.11.10",
"use_cache": true,
"vocab_size": 49152
}

1
configuration.json Normal file
View File

@@ -0,0 +1 @@
{"framework": "pytorch", "task": "text-generation", "allow_remote": true}

8
generation_config.json Normal file
View File

@@ -0,0 +1,8 @@
{
"_from_model_config": true,
"bos_token_id": 1,
"eos_token_id": 2,
"max_length": 8192,
"pad_token_id": 0,
"transformers_version": "4.46.2"
}

48901
merges.txt Normal file

File diff suppressed because it is too large Load Diff

3
pytorch_model.bin Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8353ee57f18175fbb8495725c43b5a1381fe2ba8905ad454fca9846aa0d52236
size 3422826482

28
special_tokens_map.json Normal file
View File

@@ -0,0 +1,28 @@
{
"additional_special_tokens": [
"<|im_start|>",
"<|im_end|>"
],
"bos_token": {
"content": "<|im_start|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"eos_token": {
"content": "<|im_end|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"pad_token": "<|endoftext|>",
"unk_token": {
"content": "<|endoftext|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
}
}

244949
tokenizer.json Normal file

File diff suppressed because it is too large Load Diff

155
tokenizer_config.json Normal file
View File

@@ -0,0 +1,155 @@
{
"add_prefix_space": false,
"added_tokens_decoder": {
"0": {
"content": "<|endoftext|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"1": {
"content": "<|im_start|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"2": {
"content": "<|im_end|>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"3": {
"content": "<repo_name>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"4": {
"content": "<reponame>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"5": {
"content": "<file_sep>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"6": {
"content": "<filename>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"7": {
"content": "<gh_stars>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"8": {
"content": "<issue_start>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"9": {
"content": "<issue_comment>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"10": {
"content": "<issue_closed>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"11": {
"content": "<jupyter_start>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"12": {
"content": "<jupyter_text>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"13": {
"content": "<jupyter_code>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"14": {
"content": "<jupyter_output>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"15": {
"content": "<jupyter_script>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"16": {
"content": "<empty_output>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
}
},
"additional_special_tokens": [
"<|im_start|>",
"<|im_end|>"
],
"bos_token": "<|im_start|>",
"chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
"clean_up_tokenization_spaces": false,
"eos_token": "<|im_end|>",
"model_max_length": 8192,
"pad_token": "<|endoftext|>",
"padding_side": "left",
"tokenizer_class": "GPT2Tokenizer",
"unk_token": "<|endoftext|>",
"vocab_size": 49152
}

1
vocab.json Normal file

File diff suppressed because one or more lines are too long