Text Generation
Transformers
Safetensors
GGUF
English
Turkish
llama
asena
bce
esp32
edge
esp32s3
microllm
chat
text-generation-inference
agent
prettybird
consciousness
conscious
llm
optimized
ethic
secure
turkish
english
behavioral-consciousness-engine
model
instruct
iot
LittleFS
SPIFFS
reasoning
thinking
think
god edge ai
extreme edge ai
cicikus
cicikuş
embedded
robot
npc
Offline assistant
guard
pre filter
tiny-llm
tiny llm
Eval Results (legacy)
Instructions to use pthinc/Asena_ESP32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pthinc/Asena_ESP32 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pthinc/Asena_ESP32")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pthinc/Asena_ESP32") model = AutoModelForCausalLM.from_pretrained("pthinc/Asena_ESP32") - llama-cpp-python
How to use pthinc/Asena_ESP32 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="pthinc/Asena_ESP32", filename="gguf/asena_esp32_f16.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use pthinc/Asena_ESP32 with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf pthinc/Asena_ESP32:F16 # Run inference directly in the terminal: llama-cli -hf pthinc/Asena_ESP32:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf pthinc/Asena_ESP32:F16 # Run inference directly in the terminal: llama-cli -hf pthinc/Asena_ESP32:F16
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 pthinc/Asena_ESP32:F16 # Run inference directly in the terminal: ./llama-cli -hf pthinc/Asena_ESP32:F16
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 pthinc/Asena_ESP32:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf pthinc/Asena_ESP32:F16
Use Docker
docker model run hf.co/pthinc/Asena_ESP32:F16
- LM Studio
- Jan
- vLLM
How to use pthinc/Asena_ESP32 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pthinc/Asena_ESP32" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pthinc/Asena_ESP32", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pthinc/Asena_ESP32:F16
- SGLang
How to use pthinc/Asena_ESP32 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 "pthinc/Asena_ESP32" \ --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": "pthinc/Asena_ESP32", "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 "pthinc/Asena_ESP32" \ --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": "pthinc/Asena_ESP32", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use pthinc/Asena_ESP32 with Ollama:
ollama run hf.co/pthinc/Asena_ESP32:F16
- Unsloth Studio new
How to use pthinc/Asena_ESP32 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for pthinc/Asena_ESP32 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for pthinc/Asena_ESP32 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for pthinc/Asena_ESP32 to start chatting
- Docker Model Runner
How to use pthinc/Asena_ESP32 with Docker Model Runner:
docker model run hf.co/pthinc/Asena_ESP32:F16
- Lemonade
How to use pthinc/Asena_ESP32 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull pthinc/Asena_ESP32:F16
Run and chat with the model
lemonade run user.Asena_ESP32-F16
List all available models
lemonade list
Update README.md
Browse files
README.md
CHANGED
|
@@ -50,6 +50,20 @@ By placing these files on an SD card or loading them via SPIFFS/LittleFS, you ca
|
|
| 50 |
|
| 51 |
---
|
| 52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
# BCE Architecture Project: Final Success Report Simulation
|
| 54 |
|
| 55 |
## 1. Executive Summary
|
|
|
|
| 50 |
|
| 51 |
---
|
| 52 |
|
| 53 |
+
### **Model Architecture & Configuration**
|
| 54 |
+
|
| 55 |
+
**Asena_ESP32** is a highly compact Transformer model based on the **LLaMA (LlamaForCausalLM)** architecture, specifically optimized for extreme edge deployment. Despite its ultra-small footprint, the model incorporates modern design choices to maximize efficiency, stability, and expressive capability within tight hardware constraints.
|
| 56 |
+
|
| 57 |
+
The model features **8 Transformer layers** with a **hidden size of 64** and **8 attention heads** (with 4 key-value heads for efficiency). Each head operates with a **dimension of 26**, enabling lightweight multi-head attention while maintaining reasonable representational capacity. The feed-forward network uses an **intermediate size of 208** with **SiLU activation**, balancing non-linearity and computational cost. Both attention and MLP layers include bias terms, and minimal dropout (~0.0027) is applied to stabilize training without harming convergence in such a small model.
|
| 58 |
+
|
| 59 |
+
For positional encoding, Asena_ESP32 uses an advanced **RoPE (Rotary Positional Embedding)** configuration inspired by LLaMA 3, with extended scaling parameters (factor: 256) to improve positional generalization beyond its base context. The model supports a **maximum sequence length of 128 tokens**, making it suitable for short, structured interactions typical in embedded systems. It uses **RMSNorm** with a finely tuned epsilon for numerical stability and shares input-output embeddings to reduce parameter count.
|
| 60 |
+
|
| 61 |
+
The tokenizer operates with a **vocabulary size of 8,766 tokens**, and special tokens are defined for padding (8000), beginning-of-sequence (8001), and end-of-sequence (8002). The model is trained and executed in **float32 precision**, with caching disabled to reduce memory overhead—aligning with its goal of running efficiently on constrained devices such as ESP32.
|
| 62 |
+
|
| 63 |
+
Overall, this configuration reflects a deliberate trade-off: sacrificing large-scale knowledge capacity in favor of **speed, determinism, and deployability at the extreme edge**.
|
| 64 |
+
|
| 65 |
+
---
|
| 66 |
+
|
| 67 |
# BCE Architecture Project: Final Success Report Simulation
|
| 68 |
|
| 69 |
## 1. Executive Summary
|