Text Generation
Transformers
Safetensors
English
Hindi
Chinese
qwen3
Neura Tech AI
Lumina AI
Nexa AI
instruct
llm
transformer
qwen
multilingual
conversational
text-generation-inference
Instructions to use Neura-Tech-AI/Nexa-AI-4B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Neura-Tech-AI/Nexa-AI-4B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Neura-Tech-AI/Nexa-AI-4B-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Neura-Tech-AI/Nexa-AI-4B-Instruct") model = AutoModelForCausalLM.from_pretrained("Neura-Tech-AI/Nexa-AI-4B-Instruct", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Neura-Tech-AI/Nexa-AI-4B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Neura-Tech-AI/Nexa-AI-4B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Neura-Tech-AI/Nexa-AI-4B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Neura-Tech-AI/Nexa-AI-4B-Instruct
- SGLang
How to use Neura-Tech-AI/Nexa-AI-4B-Instruct 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 "Neura-Tech-AI/Nexa-AI-4B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Neura-Tech-AI/Nexa-AI-4B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Neura-Tech-AI/Nexa-AI-4B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Neura-Tech-AI/Nexa-AI-4B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Neura-Tech-AI/Nexa-AI-4B-Instruct with Docker Model Runner:
docker model run hf.co/Neura-Tech-AI/Nexa-AI-4B-Instruct
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
base_model: Qwen/Qwen3-4B-Instruct-2507
|
| 4 |
license: apache-2.0
|
| 5 |
-
|
| 6 |
pipeline_tag: text-generation
|
| 7 |
language:
|
| 8 |
- en
|
|
@@ -10,43 +9,62 @@ language:
|
|
| 10 |
- zh
|
| 11 |
---
|
| 12 |
|
| 13 |
-
# Nexa
|
| 14 |
|
| 15 |
-
>
|
| 16 |
|
| 17 |
## Overview
|
| 18 |
|
| 19 |
-
Nexa
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
##
|
| 22 |
|
| 23 |
-
|
| 24 |
-
- **Architecture:** Qwen3
|
| 25 |
-
- **Parameters:** 4B
|
| 26 |
-
- **License:** Apache-2.0
|
| 27 |
|
| 28 |
-
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
-
Nexa AI
|
| 33 |
|
| 34 |
-
|
|
|
|
|
|
|
| 35 |
|
| 36 |
-
|
| 37 |
-
- Improved Hindi support
|
| 38 |
-
- Stronger coding performance
|
| 39 |
-
- Better mathematical reasoning
|
| 40 |
-
- Enhanced tool calling
|
| 41 |
-
- Optimized for agentic workflows
|
| 42 |
-
- Improved instruction following
|
| 43 |
-
- Fine-tuned identity and behavior
|
| 44 |
-
- Better response quality
|
| 45 |
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
-
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
## Model Overview
|
| 51 |
|
| 52 |
**Qwen3-4B-Instruct-2507** has the following features:
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
|
|
|
| 3 |
license: apache-2.0
|
| 4 |
+
base_model: Qwen/Qwen3-4B-Instruct-2507
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
language:
|
| 7 |
- en
|
|
|
|
| 9 |
- zh
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Nexa-AI-4B-Instruct
|
| 13 |
|
| 14 |
+
> A collaborative open-source large language model developed by **Neura Tech AI** and **Lumina AI**.
|
| 15 |
|
| 16 |
## Overview
|
| 17 |
|
| 18 |
+
**Nexa-AI-4B-Instruct** is an instruction-tuned large language model built on top of **Qwen/Qwen3-4B-Instruct-2507**.
|
| 19 |
+
|
| 20 |
+
This project is jointly developed by:
|
| 21 |
+
|
| 22 |
+
- **Neura Tech AI**
|
| 23 |
+
- **Lumina AI**
|
| 24 |
+
|
| 25 |
+
Nexa AI focuses on delivering a capable multilingual AI assistant with strong performance in:
|
| 26 |
+
|
| 27 |
+
- General conversation
|
| 28 |
+
- Instruction following
|
| 29 |
+
- Coding
|
| 30 |
+
- Mathematics
|
| 31 |
+
- Logical reasoning
|
| 32 |
+
- Tool calling & AI agents
|
| 33 |
+
- Multilingual understanding (including English, Hindi, Chinese, and more)
|
| 34 |
|
| 35 |
+
## Base Model
|
| 36 |
|
| 37 |
+
**Base Model:** `Qwen/Qwen3-4B-Instruct-2507`
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
+
We sincerely thank the Qwen Team for releasing the Qwen3 model family under the Apache 2.0 License, which made this project possible.
|
| 40 |
|
| 41 |
+
## Developers
|
| 42 |
|
| 43 |
+
**Project:** Nexa AI
|
| 44 |
|
| 45 |
+
**Developed by:**
|
| 46 |
+
- Neura Tech AI
|
| 47 |
+
- Lumina AI
|
| 48 |
|
| 49 |
+
## Model Details
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
+
- Model Name: **Nexa-AI-4B-Instruct**
|
| 52 |
+
- Base Model: **Qwen/Qwen3-4B-Instruct-2507**
|
| 53 |
+
- Architecture: Transformer Decoder
|
| 54 |
+
- Parameters: ~4 Billion
|
| 55 |
+
- Context Length: 262,144 Tokens (Inherited from the base model)
|
| 56 |
+
- License: Apache-2.0 (Base model license)
|
| 57 |
|
| 58 |
+
## Features
|
| 59 |
|
| 60 |
+
- High-quality instruction following
|
| 61 |
+
- Coding assistance
|
| 62 |
+
- Mathematical reasoning
|
| 63 |
+
- Agent & tool calling support
|
| 64 |
+
- Multilingual capabilities
|
| 65 |
+
- Long-context understanding
|
| 66 |
+
- Fine-tuned alignment for helpful responses
|
| 67 |
+
-
|
| 68 |
## Model Overview
|
| 69 |
|
| 70 |
**Qwen3-4B-Instruct-2507** has the following features:
|