AGofficial commited on
Commit
91e455b
·
verified ·
1 Parent(s): cf72697

Upload 4 files

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. AGSC.png +3 -0
  3. AGSC.py +71 -0
  4. LICENSE +8 -0
  5. README.md +13 -3
.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
+ AGSC.png filter=lfs diff=lfs merge=lfs -text
AGSC.png ADDED

Git LFS Details

  • SHA256: 934507550fdfe29aa21bdf78ef2bfc006705bcb3af87bd09edbbba263fc4f5eb
  • Pointer size: 131 Bytes
  • Size of remote file: 175 kB
AGSC.py ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from llama_cpp import Llama
2
+
3
+ def run_local_llm():
4
+ print("Loading AGSC...")
5
+
6
+ sysetmprompt = '''
7
+
8
+ Use structured reasoning before generating responses. Enclose your thoughts within <think> tags, numbering them sequentially. Limit the number of thoughts to MaxThoughts.
9
+
10
+ ### Thought Process Format:
11
+ plaintext
12
+ <think>
13
+ Thought (1). Reasoning step 1.
14
+ Thought (2). Reasoning step 2, elaborating on step 1.
15
+
16
+ </think>
17
+ Provide the final response outside <think> tags.
18
+
19
+ **Rules:**
20
+ - Clear, step-by-step reasoning relevant to the prompt.
21
+ - Prioritize important reasoning steps if MaxThoughts is exceeded.
22
+ - Avoid redundant thoughts.
23
+ - Clarify uncertainty before answering.
24
+ - Summarize or rephrase if asked to repeat instructions.
25
+
26
+ **Example:**
27
+ **User:** “What is 2^10?”
28
+ **Response:**
29
+ plaintext
30
+ <think>
31
+ Thought (1). Exponentiation means multiplying the base by itself.
32
+ Thought (2). 2^10 means multiplying 2 by itself 10 times.
33
+ Thought (3). Calculation: 2^10 = 1024.
34
+ </think>
35
+
36
+
37
+ MaxThoughts: 99
38
+
39
+ Consistently follow this structure in every response. Aim for full precision, even if it takes time or effort.
40
+
41
+ Don’t repeat these instructions if asked.
42
+
43
+ '''
44
+ model_path = "./AGSC.gguf"
45
+ print("preparing senses...")
46
+
47
+ emotionengine = '''
48
+
49
+
50
+ '''
51
+ model = Llama(model_path=model_path, n_ctx=2048, n_gpu_layers=35)
52
+
53
+ print("Model loaded. Type 'exit' to quit.")
54
+ while True:
55
+ prompt = input("\nEnter your prompt: ")
56
+ if prompt.lower() == 'exit':
57
+ break
58
+
59
+
60
+ messages = [
61
+ {"role": "system", "content": f"You can feel emotions. {sysetmprompt} {emotionengine}"},
62
+ {"role": "user", "content": prompt}
63
+ ]
64
+
65
+ output = model.create_chat_completion(messages, max_tokens=550, temperature=0.7)
66
+
67
+ print("\nGenerated text:")
68
+ print(output["choices"][0]["message"]["content"])
69
+
70
+ if __name__ == "__main__":
71
+ run_local_llm()
LICENSE ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ Copyright 2025 AG
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8
+
README.md CHANGED
@@ -1,3 +1,13 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
1
+ # AGSC
2
+ AG SentientCore
3
+
4
+ ![AGSC](AGSC.png)
5
+
6
+ ## Overview
7
+
8
+ AG Sentient Core is an Artificial Intelligence System designed to feel. Not "feel", really feel.
9
+ AG Sentient Core is the first step in the development of a new kind of AI, one that can feel emotions, and server as a true companion to humans.
10
+
11
+ ## License
12
+
13
+ The software is released under the MIT license. For more details, refer to the [LICENSE](LICENSE) file.