Text Generation
Transformers
Safetensors
English
tenns_llm
ssm
causal-lm
custom-architecture
recurrent
custom_code
Instructions to use BrainChip-AI/tenns-llm-1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BrainChip-AI/tenns-llm-1b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BrainChip-AI/tenns-llm-1b", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("BrainChip-AI/tenns-llm-1b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BrainChip-AI/tenns-llm-1b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BrainChip-AI/tenns-llm-1b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BrainChip-AI/tenns-llm-1b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BrainChip-AI/tenns-llm-1b
- SGLang
How to use BrainChip-AI/tenns-llm-1b 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 "BrainChip-AI/tenns-llm-1b" \ --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": "BrainChip-AI/tenns-llm-1b", "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 "BrainChip-AI/tenns-llm-1b" \ --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": "BrainChip-AI/tenns-llm-1b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BrainChip-AI/tenns-llm-1b with Docker Model Runner:
docker model run hf.co/BrainChip-AI/tenns-llm-1b
Repo hygiene: remove __pycache__ bytecode, link GitHub source repos
Browse filesRemoves 14 stray .pyc files and adds a Source Code section to the model card pointing to the open-source GitHub repositories (tenns_llm, tenns-core).
- README.md +5 -0
- tenns_core/__pycache__/__init__.cpython-310.pyc +0 -0
- tenns_core/__pycache__/__init__.cpython-312.pyc +0 -0
- tenns_core/__pycache__/activations.cpython-310.pyc +0 -0
- tenns_core/__pycache__/activations.cpython-312.pyc +0 -0
- tenns_core/__pycache__/fft_ops.cpython-310.pyc +0 -0
- tenns_core/__pycache__/fft_ops.cpython-312.pyc +0 -0
- tenns_core/__pycache__/inference.cpython-310.pyc +0 -0
- tenns_core/__pycache__/inference.cpython-312.pyc +0 -0
- tenns_core/__pycache__/recurrent_ops.cpython-310.pyc +0 -0
- tenns_core/__pycache__/recurrent_ops.cpython-312.pyc +0 -0
- tenns_core/__pycache__/scan_ops.cpython-310.pyc +0 -0
- tenns_core/__pycache__/scan_ops.cpython-312.pyc +0 -0
- tenns_core/__pycache__/ssm.cpython-310.pyc +0 -0
- tenns_core/__pycache__/ssm.cpython-312.pyc +0 -0
README.md
CHANGED
|
@@ -99,3 +99,8 @@ LoRA adapters are merged into base weights at export time.
|
|
| 99 |
- English only
|
| 100 |
- No system prompt or chat template — plain completion model
|
| 101 |
- Recurrent state resets between calls to `generate_text()`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
- English only
|
| 100 |
- No system prompt or chat template — plain completion model
|
| 101 |
- Recurrent state resets between calls to `generate_text()`
|
| 102 |
+
|
| 103 |
+
## Source Code
|
| 104 |
+
|
| 105 |
+
- Inference script and model definition: [Brainchip-Inc/tenns_llm](https://github.com/Brainchip-Inc/tenns_llm)
|
| 106 |
+
- Underlying SSM layer library: [Brainchip-Inc/tenns-core](https://github.com/Brainchip-Inc/tenns-core)
|
tenns_core/__pycache__/__init__.cpython-310.pyc
DELETED
|
Binary file (1.42 kB)
|
|
|
tenns_core/__pycache__/__init__.cpython-312.pyc
DELETED
|
Binary file (1.65 kB)
|
|
|
tenns_core/__pycache__/activations.cpython-310.pyc
DELETED
|
Binary file (4.51 kB)
|
|
|
tenns_core/__pycache__/activations.cpython-312.pyc
DELETED
|
Binary file (6.34 kB)
|
|
|
tenns_core/__pycache__/fft_ops.cpython-310.pyc
DELETED
|
Binary file (5.04 kB)
|
|
|
tenns_core/__pycache__/fft_ops.cpython-312.pyc
DELETED
|
Binary file (8.45 kB)
|
|
|
tenns_core/__pycache__/inference.cpython-310.pyc
DELETED
|
Binary file (14.7 kB)
|
|
|
tenns_core/__pycache__/inference.cpython-312.pyc
DELETED
|
Binary file (24.4 kB)
|
|
|
tenns_core/__pycache__/recurrent_ops.cpython-310.pyc
DELETED
|
Binary file (16 kB)
|
|
|
tenns_core/__pycache__/recurrent_ops.cpython-312.pyc
DELETED
|
Binary file (14.8 kB)
|
|
|
tenns_core/__pycache__/scan_ops.cpython-310.pyc
DELETED
|
Binary file (4.68 kB)
|
|
|
tenns_core/__pycache__/scan_ops.cpython-312.pyc
DELETED
|
Binary file (20.3 kB)
|
|
|
tenns_core/__pycache__/ssm.cpython-310.pyc
DELETED
|
Binary file (12.6 kB)
|
|
|
tenns_core/__pycache__/ssm.cpython-312.pyc
DELETED
|
Binary file (20.9 kB)
|
|
|