Upload folder using huggingface_hub
Browse files- README.md +32 -0
- config.json +23 -0
- generation_config.json +7 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +23 -0
- tokenizer.json +0 -0
- tokenizer_config.json +19 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# smollm-turkish-base
|
3 |
+
|
4 |
+
Turkish base model with early stopped training
|
5 |
+
|
6 |
+
## Model Description
|
7 |
+
|
8 |
+
- **Model Type:** LLaMA Architecture
|
9 |
+
- **Training Framework:** Nanotron
|
10 |
+
- **Base Tokenizer:** bonur/gpt2-turkish-tokenizer
|
11 |
+
- **Context Length:** 4096
|
12 |
+
- **Vocab Size:** 52000
|
13 |
+
- **Hidden Size:** 576
|
14 |
+
- **Number of Layers:** 30
|
15 |
+
- **Number of Attention Heads:** 9
|
16 |
+
- **Number of Key/Value Heads:** 3
|
17 |
+
|
18 |
+
## Usage
|
19 |
+
|
20 |
+
```python
|
21 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
22 |
+
|
23 |
+
model = AutoModelForCausalLM.from_pretrained("bonur/smollm-turkish-base")
|
24 |
+
tokenizer = AutoTokenizer.from_pretrained("bonur/smollm-turkish-base")
|
25 |
+
|
26 |
+
# Example usage
|
27 |
+
text = "Your prompt here"
|
28 |
+
inputs = tokenizer(text, return_tensors="pt")
|
29 |
+
outputs = model.generate(inputs.input_ids, max_new_tokens=100)
|
30 |
+
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
31 |
+
print(result)
|
32 |
+
```
|
config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"LlamaForCausalLM"
|
4 |
+
],
|
5 |
+
"bos_token_id": 50256,
|
6 |
+
"eos_token_id": 50256,
|
7 |
+
"hidden_act": "silu",
|
8 |
+
"hidden_size": 576,
|
9 |
+
"initializer_range": 0.02,
|
10 |
+
"intermediate_size": 1536,
|
11 |
+
"max_position_embeddings": 4096,
|
12 |
+
"model_type": "llama",
|
13 |
+
"num_attention_heads": 9,
|
14 |
+
"num_hidden_layers": 30,
|
15 |
+
"num_key_value_heads": 3,
|
16 |
+
"pad_token_id": null,
|
17 |
+
"rms_norm_eps": 1e-05,
|
18 |
+
"tie_word_embeddings": true,
|
19 |
+
"torch_dtype": "float32",
|
20 |
+
"transformers_version": "4.33.0",
|
21 |
+
"use_cache": true,
|
22 |
+
"vocab_size": 52000
|
23 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 50256,
|
4 |
+
"eos_token_id": 50256,
|
5 |
+
"pad_token_id": null,
|
6 |
+
"transformers_version": "4.33.0"
|
7 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e604212afb10efdd6104d9bd780bfe46ad59ee8e4f7853fa755da5935f1bac20
|
3 |
+
size 544685154
|
special_tokens_map.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<|endoftext|>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "<|endoftext|>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"unk_token": {
|
17 |
+
"content": "<|endoftext|>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
}
|
23 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
}
|
12 |
+
},
|
13 |
+
"bos_token": "<|endoftext|>",
|
14 |
+
"clean_up_tokenization_spaces": false,
|
15 |
+
"eos_token": "<|endoftext|>",
|
16 |
+
"model_max_length": 1024,
|
17 |
+
"tokenizer_class": "GPT2Tokenizer",
|
18 |
+
"unk_token": "<|endoftext|>"
|
19 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|