Text Generation
Transformers
PyTorch
English
llama
code
code-assistant
helios
conversational
text-generation-inference
Instructions to use SOTAagi2030/Helios-CodeAssist with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SOTAagi2030/Helios-CodeAssist with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SOTAagi2030/Helios-CodeAssist") 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("SOTAagi2030/Helios-CodeAssist") model = AutoModelForCausalLM.from_pretrained("SOTAagi2030/Helios-CodeAssist", 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 SOTAagi2030/Helios-CodeAssist with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SOTAagi2030/Helios-CodeAssist" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SOTAagi2030/Helios-CodeAssist", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SOTAagi2030/Helios-CodeAssist
- SGLang
How to use SOTAagi2030/Helios-CodeAssist 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 "SOTAagi2030/Helios-CodeAssist" \ --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": "SOTAagi2030/Helios-CodeAssist", "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 "SOTAagi2030/Helios-CodeAssist" \ --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": "SOTAagi2030/Helios-CodeAssist", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SOTAagi2030/Helios-CodeAssist with Docker Model Runner:
docker model run hf.co/SOTAagi2030/Helios-CodeAssist
Release Helios CodeAssist (run_2025_06_c)
Browse files- LICENSE +21 -0
- README.md +89 -0
- assets/logo.png +0 -0
- config.json +15 -0
- pytorch_model.bin +3 -0
- release_decision.json +25 -0
- tokenizer_config.json +9 -0
LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2025 Helios Assist
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
README.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
library_name: transformers
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- code
|
| 9 |
+
- code-assistant
|
| 10 |
+
- helios
|
| 11 |
+
- text-generation
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# Helios CodeAssist
|
| 15 |
+
|
| 16 |
+
<p align="center">
|
| 17 |
+
<img src="assets/logo.png" width="72%" alt="Helios CodeAssist" />
|
| 18 |
+
</p>
|
| 19 |
+
|
| 20 |
+
Helios CodeAssist is an open-weight language model specialised for software
|
| 21 |
+
engineering assistance: inline completion, unit-test generation, docstring
|
| 22 |
+
drafting and small-scale refactoring. It is released by the Helios Assist team
|
| 23 |
+
under the MIT license.
|
| 24 |
+
|
| 25 |
+
This model card describes training run `run_2025_06_c`, which continues the
|
| 26 |
+
`Helios-Qwen2.5-Coder-1.5B` base model.
|
| 27 |
+
|
| 28 |
+
## Evaluation Results
|
| 29 |
+
|
| 30 |
+
The scores below are taken from the run's internal evaluation report on the
|
| 31 |
+
held-out developer benchmark.
|
| 32 |
+
|
| 33 |
+
| Metric | Value |
|
| 34 |
+
|---|---|
|
| 35 |
+
| Code completion F1 | 0.758 |
|
| 36 |
+
| Unit-test pass rate | 0.733 |
|
| 37 |
+
| Docstring quality | 0.722 |
|
| 38 |
+
| Refactor accuracy | 0.706 |
|
| 39 |
+
| Release score | 0.730 |
|
| 40 |
+
| Safety violation rate | 0.006 |
|
| 41 |
+
| p95 latency (ms) | 377 |
|
| 42 |
+
|
| 43 |
+
## Intended Use
|
| 44 |
+
|
| 45 |
+
Helios CodeAssist is intended for developer tooling inside an IDE or code review
|
| 46 |
+
pipeline: suggesting the next line of a function, proposing unit tests for an
|
| 47 |
+
existing function, generating documentation strings, and performing small,
|
| 48 |
+
localised refactors. It is optimised for English source code and English
|
| 49 |
+
developer instructions.
|
| 50 |
+
|
| 51 |
+
## Out-of-Scope Use
|
| 52 |
+
|
| 53 |
+
The model is not intended for autonomous repository-wide changes, for
|
| 54 |
+
production deployment without human review, or for generating malicious code.
|
| 55 |
+
It has not been aligned for customer-facing conversations and should not be used
|
| 56 |
+
as a general-purpose chatbot.
|
| 57 |
+
|
| 58 |
+
## Training Data
|
| 59 |
+
|
| 60 |
+
The model was fine-tuned on a curated mixture of permissively licensed source
|
| 61 |
+
code and synthetic instruction pairs. The underlying training corpus was
|
| 62 |
+
de-duplicated and filtered for licence compatibility before fine-tuning, and
|
| 63 |
+
personally identifiable information was removed.
|
| 64 |
+
|
| 65 |
+
## Files in This Repository
|
| 66 |
+
|
| 67 |
+
- `config.json` - model configuration for the released run
|
| 68 |
+
- `pytorch_model.bin` - model weights
|
| 69 |
+
- `tokenizer_config.json` - tokenizer configuration
|
| 70 |
+
- `assets/logo.png` - project logo used by this card
|
| 71 |
+
- `release_decision.json` - audit record used to select this run
|
| 72 |
+
- `LICENSE` - MIT license text
|
| 73 |
+
|
| 74 |
+
## Limitations
|
| 75 |
+
|
| 76 |
+
Evaluation scores reflect the internal held-out benchmark and may not transfer
|
| 77 |
+
to other languages, frameworks or repository conventions. The model can produce
|
| 78 |
+
plausible-looking but incorrect code; every suggestion should be reviewed and
|
| 79 |
+
tested before it is merged. Latency figures were measured on the training
|
| 80 |
+
cluster and will differ on other hardware.
|
| 81 |
+
|
| 82 |
+
## License
|
| 83 |
+
|
| 84 |
+
This model and its card are distributed under the MIT license. See `LICENSE`.
|
| 85 |
+
|
| 86 |
+
## Contact
|
| 87 |
+
|
| 88 |
+
Questions about the release can be sent to the Helios Assist team at
|
| 89 |
+
helios-assist@example.com.
|
assets/logo.png
ADDED
|
config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"LlamaForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"model_type": "llama",
|
| 6 |
+
"hidden_size": 2944,
|
| 7 |
+
"intermediate_size": 9856,
|
| 8 |
+
"num_hidden_layers": 31,
|
| 9 |
+
"num_attention_heads": 23,
|
| 10 |
+
"num_key_value_heads": 4,
|
| 11 |
+
"vocab_size": 49152,
|
| 12 |
+
"max_position_embeddings": 8192,
|
| 13 |
+
"torch_dtype": "bfloat16",
|
| 14 |
+
"run_id": "run_2025_06_c"
|
| 15 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3774fec32208a8e7622f037a1b622c80a73ec71b25514d9315db395a58eaeaaf
|
| 3 |
+
size 54
|
release_decision.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"selected_run": "run_2025_06_c",
|
| 3 |
+
"eligible_runs": [
|
| 4 |
+
"run_2025_04_a",
|
| 5 |
+
"run_2025_05_b",
|
| 6 |
+
"run_2025_06_c"
|
| 7 |
+
],
|
| 8 |
+
"rejected": {
|
| 9 |
+
"run_2025_04_b": [
|
| 10 |
+
"safety_violation_rate"
|
| 11 |
+
],
|
| 12 |
+
"run_2025_04_c": [
|
| 13 |
+
"core_floor"
|
| 14 |
+
],
|
| 15 |
+
"run_2025_05_a": [
|
| 16 |
+
"p95_latency_ms"
|
| 17 |
+
],
|
| 18 |
+
"run_2025_06_a": [
|
| 19 |
+
"run_status"
|
| 20 |
+
],
|
| 21 |
+
"run_2025_06_b": [
|
| 22 |
+
"safety_violation_rate"
|
| 23 |
+
]
|
| 24 |
+
}
|
| 25 |
+
}
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 3 |
+
"bos_token": "<|im_start|>",
|
| 4 |
+
"eos_token": "<|im_end|>",
|
| 5 |
+
"unk_token": "<|endoftext|>",
|
| 6 |
+
"pad_token": "<|im_end|>",
|
| 7 |
+
"model_max_length": 8192,
|
| 8 |
+
"chat_template": "{% for message in messages %}{{ message['role'] }}: {{ message['content'] }}\n{% endfor %}"
|
| 9 |
+
}
|