prometechinc commited on
Commit
635d21b
·
verified ·
1 Parent(s): 65726c3

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,5 +1,42 @@
 
1
  ---
2
- license: other
3
- license_name: pth-licence.md
4
- license_link: LICENSE
 
 
 
5
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
  ---
3
+ license: mit
4
+ tags:
5
+ - llama
6
+ - behavioral-consciousness-engine
7
+ - synthetic-data
8
+ - text-generation
9
  ---
10
+
11
+ # BCE Core 6M (Fine-Tuned)
12
+
13
+ ## Model Description
14
+ This is a custom 6M parameter Llama-based model, fine-tuned as part of the Behavioral Consciousness Engine (BCE) project. It is designed to act as a lightweight policy guard and control layer ('small_guard_model').
15
+
16
+ ## Architecture
17
+ - **Type**: LlamaForCausalLM
18
+ - **Parameters**: ~12M (Trainable)
19
+ - **Hidden Size**: 256
20
+ - **Intermediate Size**: 1024
21
+ - **Layers**: 8
22
+ - **Heads**: 8
23
+ - **Context Window**: 2048 tokens
24
+ - **Tokenizer**: Custom ByteLevelBPE
25
+
26
+ ## Training Data
27
+ The model was initially trained on a streaming mixture of:
28
+ 1. **Technical Data**: CodeParrot (Clean)
29
+ 2. **Humanities**: Wikitext-103
30
+ 3. **Base Schema**: BCE Simple Firewall Dataset
31
+
32
+ It was then fine-tuned on **1,000 synthetic records** generated from the `BCE-Controlled-LLM` schema (`type.json`), which enforces policy checking and risk assessment logic.
33
+
34
+ ## Usage
35
+ This model expects input in a specific JSON structure representing a request and outputs the corresponding policy decision and response JSON.
36
+
37
+ ```json
38
+ {"request": {"input": {"text": "your prompt here"}}}
39
+ ```
40
+
41
+ ## License
42
+ MIT License
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 0,
8
+ "dtype": "float32",
9
+ "eos_token_id": 2,
10
+ "head_dim": 32,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 256,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 1024,
15
+ "max_position_embeddings": 2048,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 8,
19
+ "num_hidden_layers": 8,
20
+ "num_key_value_heads": 8,
21
+ "pad_token_id": 1,
22
+ "pretraining_tp": 1,
23
+ "rms_norm_eps": 1e-06,
24
+ "rope_scaling": null,
25
+ "rope_theta": 10000.0,
26
+ "tie_word_embeddings": true,
27
+ "transformers_version": "4.57.3",
28
+ "use_cache": true,
29
+ "vocab_size": 16384
30
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": [
5
+ 2
6
+ ],
7
+ "pad_token_id": 1,
8
+ "transformers_version": "4.57.3"
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8c4726895b70f0b9bc61f057720a9d3b3fce0f41f3a509d75b0a2271a975547
3
+ size 50357128
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<pad>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
36
+ "content": "<mask>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": false,
46
+ "eos_token": "</s>",
47
+ "extra_special_tokens": {},
48
+ "max_length": 512,
49
+ "model_max_length": 1000000000000000019884624838656,
50
+ "pad_token": "<pad>",
51
+ "stride": 0,
52
+ "tokenizer_class": "PreTrainedTokenizerFast",
53
+ "truncation_side": "right",
54
+ "truncation_strategy": "longest_first",
55
+ "unk_token": "<unk>"
56
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1f8efb62e412839c7a9485278bf1ba937ad28fda76ba94226930bc7257a5ae4
3
+ size 5777