Skip to content

Commit

Permalink
fix: rename SmolLM model file
Browse files Browse the repository at this point in the history
  • Loading branch information
yirongjie committed Oct 9, 2024
1 parent 485ddc8 commit 13139d1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ Wait.. why on-device multimodal LLM? - It's a key building block for [intelligen
| [OPT 1.3B](https://github.com/facebookresearch/metaseq/tree/main/projects/OPT) | [✔️](https://huggingface.co/mllmTeam/opt-1.3b-mllm/tree/main) | [✔️](https://huggingface.co/mllmTeam/opt-1.3b-mllm/tree/main) | |
| [Phi-3-mini 3.8B](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct) | [✔️](https://huggingface.co/mllmTeam/phi-3-mini-instruct-mllm/tree/main) | [✔️](https://huggingface.co/mllmTeam/phi-3-mini-instruct-mllm/tree/main) | |
| [MiniCPM 2B](https://huggingface.co/openbmb/MiniCPM-2B-dpo-fp32) | [✔️](https://huggingface.co/mllmTeam/minicpm-2b-dpo-mllm/tree/main) | [✔️](https://huggingface.co/mllmTeam/minicpm-2b-dpo-mllm/tree/main) | |
| [SmolLM 1.7B](https://huggingface.co/HuggingFaceTB/SmolLM-1.7B-Instruct) | [✔️](https://huggingface.co/mllmTeam/smollm-1.7b-instruct-mllm/tree/main) | [✔️](https://huggingface.co/mllmTeam/smollm-1.7b-instruct-mllm/tree/main) | |

## Quick Start

Expand Down
2 changes: 1 addition & 1 deletion examples/demo_smollm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ int main(int argc, char **argv) {
cmdline::parser cmdParser;
cmdParser.add<string>("vocab", 'v', "specify mllm tokenizer model path", false, "../vocab/smollm_vocab.mllm");
cmdParser.add<string>("merge", 'e', "specify mllm merge file path", false, "../vocab/smollm_merges.txt");
cmdParser.add<string>("model", 'm', "specify mllm model path", false, "../models/SmolLM-1.7B-q4_0x4.mllm");
cmdParser.add<string>("model", 'm', "specify mllm model path", false, "../models/smollm-1.7b-instruct-q4_0_4_4.mllm");
cmdParser.add<int>("limits", 'l', "max KV cache size", false, 400);
cmdParser.add<int>("thread", 't', "num of threads", false, 4);
cmdParser.parse_check(argc, argv);
Expand Down
8 changes: 4 additions & 4 deletions src/models/smollm/configuration_smollm.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file configuration_SmolLM.hpp
* @file configuration_smollm.hpp
* @author Chenghua Wang ([email protected])
* @version 0.1
* @date 2024-09-25
Expand All @@ -8,8 +8,8 @@
*
*/
#pragma once
#ifndef CONFIG_SmolLM_HPP
#define CONFIG_SmolLM_HPP
#ifndef CONFIG_SMOLLM_HPP
#define CONFIG_SMOLLM_HPP
#include "Types.hpp"
#include "models/transformer/configuration_transformer.hpp"

Expand Down Expand Up @@ -109,4 +109,4 @@ class SmolLMConfig {
}
};

#endif // CONFIG_SmolLM_HPP
#endif // CONFIG_SMOLLM_HPP
8 changes: 4 additions & 4 deletions src/models/smollm/modeling_smollm.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file tokenization_SmolLM.hpp
* @file tokenization_smollm.hpp
* @author Chenghua Wang ([email protected])
* @version 0.1
* @date 2024-09-25
Expand All @@ -8,8 +8,8 @@
*
*/
#pragma once
#ifndef MODELING_SmolLM_HPP
#define MODELING_SmolLM_HPP
#ifndef MODELING_SMOLLM_HPP
#define MODELING_SMOLLM_HPP

#include "Layer.hpp"
#include "Module.hpp"
Expand Down Expand Up @@ -112,4 +112,4 @@ class SmolLMModel final : public Module {
}
};

#endif // MODELING_SmolLM_HPP
#endif // MODELING_SMOLLM_HPP
8 changes: 4 additions & 4 deletions src/models/smollm/tokenization_smollm.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file tokenization_SmolLM.hpp
* @file tokenization_smollm.hpp
* @author Chenghua Wang ([email protected])
* @brief
* @version 0.1
Expand All @@ -8,8 +8,8 @@
* @copyright Copyright (c) 2024
*
*/
#ifndef DCLMTOKENIZATION_SmolLM_HPP
#define DCLMTOKENIZATION_SmolLM_HPP
#ifndef DCLMTOKENIZATION_SMOLLM_HPP
#define DCLMTOKENIZATION_SMOLLM_HPP

#include "tokenizers/BPE/Bpe.hpp"
#include "tokenizers/Tokenizer.hpp"
Expand Down Expand Up @@ -323,4 +323,4 @@ class SmolLMTokenizer final {
#undef CHR
#undef ORD

#endif //! DCLMTOKENIZATION_SmolLM_HPP
#endif // TOKENIZATION_SMOLLM_HPP

0 comments on commit 13139d1

Please sign in to comment.