NeuralAI Model Family
Collection
DPO LoRA, NeuralAI-Air 135M base, and 135M-SFT models by De'Andrew Preston Harris. • 3 items • Updated
How to use Subject-Emu-5259/NeuralAI-Air-135M-SFT with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="Subject-Emu-5259/NeuralAI-Air-135M-SFT") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Subject-Emu-5259/NeuralAI-Air-135M-SFT", device_map="auto")How to use Subject-Emu-5259/NeuralAI-Air-135M-SFT with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Subject-Emu-5259/NeuralAI-Air-135M-SFT"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Subject-Emu-5259/NeuralAI-Air-135M-SFT",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/Subject-Emu-5259/NeuralAI-Air-135M-SFT
How to use Subject-Emu-5259/NeuralAI-Air-135M-SFT with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Subject-Emu-5259/NeuralAI-Air-135M-SFT" \
--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": "Subject-Emu-5259/NeuralAI-Air-135M-SFT",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "Subject-Emu-5259/NeuralAI-Air-135M-SFT" \
--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": "Subject-Emu-5259/NeuralAI-Air-135M-SFT",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use Subject-Emu-5259/NeuralAI-Air-135M-SFT with Docker Model Runner:
docker model run hf.co/Subject-Emu-5259/NeuralAI-Air-135M-SFT
Supervised fine-tuned variant of the custom compact NeuralAI-Air-135M base model. This is the instruction-tuned member of the NeuralAI model family.
| Property | Value |
|---|---|
| Architecture | NeuralAI-Air (custom decoder-only Transformer) |
| Parameters | ~135M (133.72M) |
| Base model | Subject-Emu-5259/NeuralAI-Air-135M |
| Fine-tuning dataset | Internal SFT corpus (NeuralAI ecosystem) |
| Vocabulary size | 32,000 |
| Hidden size | 768 |
| Layers | 15 |
| Attention heads | 12 |
| Key/Value heads | 2 (GQA) |
| Intermediate size | 2,560 |
| Max position embeddings | 2,048 |
| Torch dtype | float32 |
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Subject-Emu-5259/NeuralAI-Air-135M-SFT")
tokenizer = AutoTokenizer.from_pretrained("Subject-Emu-5259/NeuralAI-Air-135M-SFT")
| Model | Role | Repo |
|---|---|---|
| NeuralAI | Main production DPO adapter (360M, default) | Subject-Emu-5259/NeuralAI |
| NeuralAI-Air-135M | Custom compact base model | Subject-Emu-5259/NeuralAI-Air-135M |
| NeuralAI-Air-135M-SFT | This repo — supervised fine-tune of the 135M base | here |
Base model
Subject-Emu-5259/NeuralAI-Air-135M