Instructions to use Haamipromax/HamAI-Science-1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Haamipromax/HamAI-Science-1b 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 Haamipromax/HamAI-Science-1b # Run inference directly in the terminal: llama cli -hf Haamipromax/HamAI-Science-1b
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Haamipromax/HamAI-Science-1b # Run inference directly in the terminal: llama cli -hf Haamipromax/HamAI-Science-1b
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Haamipromax/HamAI-Science-1b # Run inference directly in the terminal: ./build/bin/llama cli -hf Haamipromax/HamAI-Science-1b
Use Docker
docker model run hf.co/Haamipromax/HamAI-Science-1b
- Llama new
- LM Studio
- Jan
- vLLM
How to use Haamipromax/HamAI-Science-1b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Haamipromax/HamAI-Science-1b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Haamipromax/HamAI-Science-1b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Haamipromax/HamAI-Science-1b
- Ollama
How to use Haamipromax/HamAI-Science-1b with Ollama:
ollama run hf.co/Haamipromax/HamAI-Science-1b
- Unsloth Desktop
- Docker Model Runner
How to use Haamipromax/HamAI-Science-1b with Docker Model Runner:
docker model run hf.co/Haamipromax/HamAI-Science-1b
- Lemonade
How to use Haamipromax/HamAI-Science-1b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Haamipromax/HamAI-Science-1b
Run and chat with the model
lemonade run user.HamAI-Science-1b-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,71 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
---
|
| 4 |
+
# HamAI Science Model
|
| 5 |
+
|
| 6 |
+
A lightweight language model designed to answer science questions clearly and accurately in English.
|
| 7 |
+
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
|
| 12 |
+
HamAI Science Model is trained and fine-tuned on science question–answer datasets. It is built to provide straightforward explanations across topics like physics, chemistry, and biology.
|
| 13 |
+
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
## Features
|
| 17 |
+
|
| 18 |
+
* Focused on science Q&A
|
| 19 |
+
* Clear and simple English answers
|
| 20 |
+
* Lightweight and efficient
|
| 21 |
+
* Suitable for educational use
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
## Usage
|
| 26 |
+
|
| 27 |
+
```python
|
| 28 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 29 |
+
|
| 30 |
+
model_name = "Haamipromax/HamAI-Science-1b"
|
| 31 |
+
|
| 32 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 33 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
| 34 |
+
|
| 35 |
+
input_text = "Explain how quantum entanglement violates classical locality."
|
| 36 |
+
inputs = tokenizer(input_text, return_tensors="pt")
|
| 37 |
+
|
| 38 |
+
outputs = model.generate(**inputs, max_new_tokens=100)
|
| 39 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
+
## Training Data
|
| 45 |
+
|
| 46 |
+
The model was trained on a mix of science question–answer datasets, including:
|
| 47 |
+
|
| 48 |
+
* General science questions
|
| 49 |
+
* Educational textbooks
|
| 50 |
+
* Scientific materials
|
| 51 |
+
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
## Limitations
|
| 55 |
+
|
| 56 |
+
* May produce incorrect answers outside science topics
|
| 57 |
+
* Not suitable for advanced research-level questions
|
| 58 |
+
|
| 59 |
+
---
|
| 60 |
+
|
| 61 |
+
## Intended Use
|
| 62 |
+
|
| 63 |
+
* Students learning science
|
| 64 |
+
* Simple question answering systems
|
| 65 |
+
* Educational tools and assistants
|
| 66 |
+
|
| 67 |
+
---
|
| 68 |
+
|
| 69 |
+
## License
|
| 70 |
+
|
| 71 |
+
Apache-2.0
|