Text Generation
Transformers
Safetensors
English
French
binaryllm
binary-carry-probagation
binary-level
bit-level
causal-lm
tokenizer-free
base2
binary
calculator
addition
TinyTransformerLM
custom_code
Instructions to use PhysiQuanty/Binary-Addition-LLM-POC with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PhysiQuanty/Binary-Addition-LLM-POC with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PhysiQuanty/Binary-Addition-LLM-POC", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("PhysiQuanty/Binary-Addition-LLM-POC", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use PhysiQuanty/Binary-Addition-LLM-POC with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PhysiQuanty/Binary-Addition-LLM-POC" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PhysiQuanty/Binary-Addition-LLM-POC", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/PhysiQuanty/Binary-Addition-LLM-POC
- SGLang
How to use PhysiQuanty/Binary-Addition-LLM-POC 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 "PhysiQuanty/Binary-Addition-LLM-POC" \ --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": "PhysiQuanty/Binary-Addition-LLM-POC", "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 "PhysiQuanty/Binary-Addition-LLM-POC" \ --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": "PhysiQuanty/Binary-Addition-LLM-POC", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use PhysiQuanty/Binary-Addition-LLM-POC with Docker Model Runner:
docker model run hf.co/PhysiQuanty/Binary-Addition-LLM-POC
Update README.md
Browse files
README.md
CHANGED
|
@@ -16,6 +16,8 @@ tags:
|
|
| 16 |
- addition
|
| 17 |
- TinyTransformerLM
|
| 18 |
license: apache-2.0
|
|
|
|
|
|
|
| 19 |
---
|
| 20 |
|
| 21 |
# Binary-Calculator-LLM (Proof of Concept)
|
|
@@ -92,5 +94,4 @@ python3 inference_binary_calculator3.py \
|
|
| 92 |
|
| 93 |
* Inputs are **10-bit integers** (0..1023). The output can exceed 10 bits (e.g. addition overflow), so the `BOR..EOR` block is decoded with **variable bit-length**.
|
| 94 |
* The model is **tokenizer-free** in the sense that it operates directly on bits and a tiny set of structural tokens.
|
| 95 |
-
* This is a **POC**: sampling settings (`temperature`, `top_k`) can affect stability. For deterministic behavior, you can lower temperature and/or increase constraints.
|
| 96 |
-
|
|
|
|
| 16 |
- addition
|
| 17 |
- TinyTransformerLM
|
| 18 |
license: apache-2.0
|
| 19 |
+
datasets:
|
| 20 |
+
- PhysiQuanty/BINARY-CARRY-PROPAGATION
|
| 21 |
---
|
| 22 |
|
| 23 |
# Binary-Calculator-LLM (Proof of Concept)
|
|
|
|
| 94 |
|
| 95 |
* Inputs are **10-bit integers** (0..1023). The output can exceed 10 bits (e.g. addition overflow), so the `BOR..EOR` block is decoded with **variable bit-length**.
|
| 96 |
* The model is **tokenizer-free** in the sense that it operates directly on bits and a tiny set of structural tokens.
|
| 97 |
+
* This is a **POC**: sampling settings (`temperature`, `top_k`) can affect stability. For deterministic behavior, you can lower temperature and/or increase constraints.
|
|
|