Text Generation
Transformers
Safetensors
GGUF
PyTorch
English
llama
llm
chatbot
causal-lm
harness
algosciencelab
vlsi
coding
reasoning
conversational
text-generation-inference
Instructions to use algoscienceacademy/Harness with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use algoscienceacademy/Harness with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="algoscienceacademy/Harness") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("algoscienceacademy/Harness") model = AutoModelForCausalLM.from_pretrained("algoscienceacademy/Harness", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use algoscienceacademy/Harness 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 algoscienceacademy/Harness:F16 # Run inference directly in the terminal: llama cli -hf algoscienceacademy/Harness:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf algoscienceacademy/Harness:F16 # Run inference directly in the terminal: llama cli -hf algoscienceacademy/Harness: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 algoscienceacademy/Harness:F16 # Run inference directly in the terminal: ./llama-cli -hf algoscienceacademy/Harness: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 algoscienceacademy/Harness:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf algoscienceacademy/Harness:F16
Use Docker
docker model run hf.co/algoscienceacademy/Harness:F16
- LM Studio
- Jan
- vLLM
How to use algoscienceacademy/Harness with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "algoscienceacademy/Harness" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "algoscienceacademy/Harness", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/algoscienceacademy/Harness:F16
- SGLang
How to use algoscienceacademy/Harness 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 "algoscienceacademy/Harness" \ --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": "algoscienceacademy/Harness", "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 "algoscienceacademy/Harness" \ --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": "algoscienceacademy/Harness", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use algoscienceacademy/Harness with Ollama:
ollama run hf.co/algoscienceacademy/Harness:F16
- Unsloth Studio
How to use algoscienceacademy/Harness 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 algoscienceacademy/Harness 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 algoscienceacademy/Harness to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for algoscienceacademy/Harness to start chatting
- Docker Model Runner
How to use algoscienceacademy/Harness with Docker Model Runner:
docker model run hf.co/algoscienceacademy/Harness:F16
- Lemonade
How to use algoscienceacademy/Harness with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull algoscienceacademy/Harness:F16
Run and chat with the model
lemonade run user.Harness-F16
List all available models
lemonade list
- Atomic Chat
File size: 4,949 Bytes
c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 78bfc71 c0b9f59 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
---
license: apache-2.0
language:
- en
library_name: transformers
pipeline_tag: text-generation
base_model: TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T
tags:
- llm
- chatbot
- text-generation
- causal-lm
- harness
- algosciencelab
- vlsi
- coding
- reasoning
- pytorch
widget:
- example_title: Python Example
messages:
- role: system
content: You are Harness, an AI assistant created by Algo Science Lab.
- role: user
content: Write a Python function that calculates the factorial of a number.
---
<div align="center">
# Harness-1B
### Developed by Algo Science Lab
**Author:** Shahrear Hossain
**Hugging Face:** https://huggingface.co/algoscienceacademy
</div>
---
# Harness-1B
Harness-1B is a lightweight large language model developed by **Algo Science Lab** for instruction following, coding assistance, reasoning, mathematics, electronics, semiconductor engineering, VLSI design, and general conversational AI.
The model contains approximately **1 billion parameters**, making it suitable for local deployment while providing strong performance for everyday AI tasks.
Harness-1B has been fine-tuned to provide accurate, helpful, and concise responses across a wide variety of technical and general domains.
---
# Features
- General conversation
- Code generation
- Python programming
- C programming
- C++ programming
- Rust programming
- Java programming
- JavaScript
- TypeScript
- Verilog HDL
- SystemVerilog
- VHDL
- RTL Design
- FPGA Development
- ASIC Design
- CMOS Digital Design
- Semiconductor Engineering
- VLSI Design
- Mathematics
- Electronics
- Physics
- Problem Solving
- Technical Documentation
- AI Research Assistance
---
# Model Details
| Property | Value |
|----------|-------|
| Model Name | Harness-1B |
| Organization | Algo Science Lab |
| Hugging Face Username | algoscienceacademy |
| Parameters | ~1 Billion |
| Architecture | Llama-based |
| Model Type | Causal Language Model |
| Context Length | 2048 Tokens *(or your trained context size)* |
| Precision | FP16 / BF16 / GGUF |
| Framework | PyTorch |
| License | Apache-2.0 |
---
# Intended Uses
Harness-1B is designed for:
- AI Chatbots
- Programming Assistant
- Educational Applications
- Research
- Embedded AI
- Local AI Deployment
- Engineering Assistance
- Electronics Design
- FPGA Development
- ASIC/VLSI Workflow
- RTL Development
- Automation
- Documentation
---
# Example
```python
from transformers import pipeline
pipe = pipeline(
"text-generation",
model="algoscienceacademy/Harness-1B",
device_map="auto"
)
messages = [
{
"role": "system",
"content": "You are Harness, an AI assistant created by Algo Science Lab."
},
{
"role": "user",
"content": "Write a Python program to print Fibonacci numbers."
}
]
prompt = pipe.tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
output = pipe(
prompt,
max_new_tokens=256,
temperature=0.7,
)
print(output[0]["generated_text"])
```
---
# GGUF Usage
Harness-1B is also available in GGUF format for:
- llama.cpp
- LM Studio
- Jan
- Open WebUI
- KoboldCpp
- Ollama (after conversion)
Example:
```bash
./main \
-m Harness-1B-Q4_K_M.gguf \
-p "Explain CMOS Inverter."
```
---
# Training
Harness-1B is trained and fine-tuned using open-source datasets and instruction-following techniques.
Possible data sources include:
- SlimPajama
- StarCoderData
- UltraChat
- UltraFeedback
Additional custom datasets may have been used during supervised fine-tuning.
---
# Capabilities
Harness-1B can:
- Answer questions
- Explain concepts
- Generate code
- Debug code
- Write documentation
- Solve mathematics
- Explain algorithms
- Assist with VLSI
- Help with FPGA design
- Generate Verilog
- Generate SystemVerilog
- Produce technical reports
---
# Limitations
Harness-1B may:
- Produce incorrect information.
- Generate outdated knowledge.
- Make reasoning mistakes.
- Require verification for safety-critical applications.
- Require human review for production environments.
---
# Hardware Requirements
Recommended:
- 8 GB RAM (Q4 GGUF)
- 12 GB RAM (Q6 GGUF)
- 16 GB RAM (FP16)
- CUDA GPU recommended but optional
---
# Citation
```bibtex
@misc{Harness1B,
title={Harness-1B},
author={Algo Science Lab},
year={2026},
publisher={Hugging Face},
howpublished={https://huggingface.co/algoscienceacademy/Harness-1B}
}
```
---
# License
Apache License 2.0
---
# Acknowledgements
Harness-1B builds upon open-source language model research and would not be possible without the work of the open-source AI community, including:
- Meta AI (Llama Architecture)
- TinyLlama Project
- Hugging Face
- PyTorch
- Transformers
- llama.cpp
---
# Contact
**Organization:** Algo Science Lab
**Hugging Face:** https://huggingface.co/algoscienceacademy
---
Made with ❤️ by Algo Science Lab. |