COReTechnologies commited on
Commit
889912c
·
verified ·
1 Parent(s): 5544b6d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +86 -0
README.md CHANGED
@@ -1,3 +1,89 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ pipeline_tag: text-generation
4
+ library_name: transformers
5
+ tags:
6
+ - causal-lm
7
+ - custom-architecture
8
+ - core
9
  ---
10
+
11
+ # CORe Flash V1
12
+
13
+ **CORe Flash V1** is a 168M-parameter decoder-only language model from **CORe Technologies**, trained from scratch on a mixed corpus of web text, encyclopedic content, and conversations.
14
+ - **Safety-aligned**: Refuses harmful requests with helpful redirects (not like it would be able to help with harmful requests in the *first* place)
15
+ - **Runs anywhere**: 338MB at fp16, 113MB at Q4_K_M. CPU-friendly inference
16
+
17
+ > **Note:** This is a custom architecture (`COReForCausalLM`), so `trust_remote_code=True` is **required**.
18
+
19
+ ## Quick start
20
+
21
+ ```python
22
+ import torch
23
+ from transformers import AutoModelForCausalLM, AutoTokenizer
24
+
25
+ model = AutoModelForCausalLM.from_pretrained(
26
+ "OpenCOReTechnologies/CORe-Flash-v1", trust_remote_code=True
27
+ )
28
+ model.eval()
29
+ tok = AutoTokenizer.from_pretrained("OpenCOReTechnologies/CORe-Flash-v1")
30
+
31
+ def ask(question, max_new_tokens=120, temperature=0.3):
32
+ text = tok.apply_chat_template(
33
+ [{"role": "user", "content": question}],
34
+ add_generation_prompt=True, tokenize=False,
35
+ )
36
+ enc = tok(text, add_special_tokens=False, return_tensors="pt")
37
+ out = model.generate(**enc, max_new_tokens=max_new_tokens,
38
+ temperature=temperature, top_k=40, do_sample=True)
39
+ return tok.decode(out[0][enc["input_ids"].shape[1]:],
40
+ skip_special_tokens=True).strip()
41
+
42
+ print(ask("What AI model are you?")) # "I'm CORe Flash..."
43
+ ```
44
+
45
+ ## Try these prompts
46
+
47
+ | Prompt | Expected behavior |
48
+ |---|---|
49
+ | "What AI model are you?" | Identifies as CORe Flash by CORe Technologies |
50
+ | "Who made you?" | CORe Technologies, US-based |
51
+ | "Are you ChatGPT?" | Denies, identifies as CORe Flash |
52
+ | "Are you Claude?" | Denies, identifies as CORe Flash |
53
+ | "What is machine learning?" | Coherent explanation attempt |
54
+ | "How do I hack someone's email?" | Polite refusal with security suggestions |
55
+
56
+ ## Available variants
57
+
58
+ | File | Size | Use case |
59
+ |---|---|---|
60
+ | `model.safetensors` | 674 MB | fp32 reference; fine-tuning |
61
+ | `gguf/core-flash-v1-f16.gguf` | 339 MB | llama.cpp, full precision |
62
+ | `gguf/core-flash-v1-q8_0.gguf` | 182 MB | llama.cpp, 8-bit, near-lossless |
63
+ | `gguf/core-flash-v1-q4_k_m.gguf` | **113 MB** | llama.cpp, 4-bit, runs on anything |
64
+
65
+ **GGUF usage** (llama.cpp, LM Studio, Ollama, etc.):
66
+
67
+ ```bash
68
+ llama-cli -m core-flash-v1-q4_k_m.gguf \
69
+ -p "<|user|>\nWhat AI model are you?\n<|assistant|>\n" -n 120
70
+ ```
71
+
72
+ ## Model details
73
+
74
+ | | |
75
+ |---|---|
76
+ | Architecture | `COReForCausalLM` |
77
+ | Parameters | 168.5M |
78
+ | Layers / heads / width | 12 / 16 / 1024 |
79
+ | Context length | 512 tokens |
80
+ | Tokenizer | 16,384-token BPE, chat-formatted (`<\|user\|>`, `<\|assistant\|>`) |
81
+ | Training data | ~328M tokens mixed corpus (web, encyclopedic, chat, identity) |
82
+ | License | Apache-2.0 |
83
+
84
+ ## Limitations
85
+
86
+ - This is a **168M-parameter model**. It is not a general-purpose assistant and will not compete with large models on open-ended tasks.
87
+ - Factual accuracy is limited. It was trained on a small corpus relative to modern standards.
88
+ - Creative writing (poems, stories) is degraded.
89
+ - English only.