Instructions to use OpenCOReTechnologies/Flash-V1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenCOReTechnologies/Flash-V1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OpenCOReTechnologies/Flash-V1")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("OpenCOReTechnologies/Flash-V1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use OpenCOReTechnologies/Flash-V1 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf OpenCOReTechnologies/Flash-V1:Q4_K_M # Run inference directly in the terminal: llama cli -hf OpenCOReTechnologies/Flash-V1:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf OpenCOReTechnologies/Flash-V1:Q4_K_M # Run inference directly in the terminal: llama cli -hf OpenCOReTechnologies/Flash-V1:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf OpenCOReTechnologies/Flash-V1:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf OpenCOReTechnologies/Flash-V1:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf OpenCOReTechnologies/Flash-V1:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf OpenCOReTechnologies/Flash-V1:Q4_K_M
Use Docker
docker model run hf.co/OpenCOReTechnologies/Flash-V1:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use OpenCOReTechnologies/Flash-V1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OpenCOReTechnologies/Flash-V1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenCOReTechnologies/Flash-V1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/OpenCOReTechnologies/Flash-V1:Q4_K_M
- SGLang
How to use OpenCOReTechnologies/Flash-V1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "OpenCOReTechnologies/Flash-V1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenCOReTechnologies/Flash-V1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "OpenCOReTechnologies/Flash-V1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenCOReTechnologies/Flash-V1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use OpenCOReTechnologies/Flash-V1 with Ollama:
ollama run hf.co/OpenCOReTechnologies/Flash-V1:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use OpenCOReTechnologies/Flash-V1 with Docker Model Runner:
docker model run hf.co/OpenCOReTechnologies/Flash-V1:Q4_K_M
- Lemonade
How to use OpenCOReTechnologies/Flash-V1 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull OpenCOReTechnologies/Flash-V1:Q4_K_M
Run and chat with the model
lemonade run user.Flash-V1-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
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.
|