Text Generation
Transformers
Safetensors
qwen3_5_text
qwen3.5
agent-memory
trace-summarization
text-only
lora
conversational
Instructions to use aksern/compctx-0.8b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aksern/compctx-0.8b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aksern/compctx-0.8b") 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("aksern/compctx-0.8b") model = AutoModelForCausalLM.from_pretrained("aksern/compctx-0.8b", 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 aksern/compctx-0.8b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aksern/compctx-0.8b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aksern/compctx-0.8b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/aksern/compctx-0.8b
- SGLang
How to use aksern/compctx-0.8b 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 "aksern/compctx-0.8b" \ --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": "aksern/compctx-0.8b", "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 "aksern/compctx-0.8b" \ --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": "aksern/compctx-0.8b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use aksern/compctx-0.8b with Docker Model Runner:
docker model run hf.co/aksern/compctx-0.8b
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,12 +3,14 @@ license: openmdw-1.1
|
|
| 3 |
library_name: transformers
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
tags:
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
# compctx-0.8b
|
|
@@ -66,35 +68,51 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 66 |
)
|
| 67 |
|
| 68 |
trace = """
|
| 69 |
-
[
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
[
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
"""
|
| 77 |
|
| 78 |
messages = [
|
| 79 |
{"role": "user", "content": trace},
|
| 80 |
]
|
| 81 |
|
| 82 |
-
|
| 83 |
messages,
|
| 84 |
-
tokenize=
|
| 85 |
add_generation_prompt=True,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
return_tensors="pt",
|
|
|
|
| 87 |
).to(model.device)
|
| 88 |
|
| 89 |
with torch.inference_mode():
|
| 90 |
output = model.generate(
|
| 91 |
-
inputs,
|
| 92 |
max_new_tokens=512,
|
| 93 |
do_sample=False,
|
| 94 |
)
|
| 95 |
|
| 96 |
result = tokenizer.decode(
|
| 97 |
-
output[0][inputs.shape[1]:],
|
| 98 |
skip_special_tokens=True,
|
| 99 |
)
|
| 100 |
|
|
@@ -122,7 +140,6 @@ The chat template automatically:
|
|
| 122 |
## Limitations
|
| 123 |
|
| 124 |
- Not a general-purpose conversational assistant.
|
| 125 |
-
- Accepts text traces only; images and video are not supported.
|
| 126 |
- Designed around the specific structured output format above.
|
| 127 |
- Accuracy depends on the information available in the input trace.
|
| 128 |
- May omit details when the input exceeds its context or output budget.
|
|
@@ -137,4 +154,4 @@ The resulting adapter was merged into a standalone text-only checkpoint.
|
|
| 137 |
|
| 138 |
## License
|
| 139 |
|
| 140 |
-
This model is based on Qwen3.5-0.8B. Check the base model's license and applicable terms before redistribution or commercial use. The license for this model is OpenMDW-1.1
|
|
|
|
| 3 |
library_name: transformers
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
tags:
|
| 6 |
+
- qwen3.5
|
| 7 |
+
- text-generation
|
| 8 |
+
- agent-memory
|
| 9 |
+
- trace-summarization
|
| 10 |
+
- text-only
|
| 11 |
+
- lora
|
| 12 |
+
base_model:
|
| 13 |
+
- Qwen/Qwen3.5-0.8B
|
| 14 |
---
|
| 15 |
|
| 16 |
# compctx-0.8b
|
|
|
|
| 68 |
)
|
| 69 |
|
| 70 |
trace = """
|
| 71 |
+
[TRACE] [2026-10-30 06:24:00] [AGENT: Orchestrator]
|
| 72 |
+
User Prompt: "Find the errors in the file script.py and fix them."
|
| 73 |
+
|
| 74 |
+
[SPAN] [Thinking Process]
|
| 75 |
+
"To solve the task, I first need to read the contents of the file script.py. I will use the view_file tool."
|
| 76 |
+
|
| 77 |
+
[SPAN] [Tool Call: view_file]
|
| 78 |
+
Arguments: {"path": "script.py"}
|
| 79 |
+
Response: "def main():\n print('Hello' + 5)"
|
| 80 |
+
|
| 81 |
+
[SPAN] [Thinking Process]
|
| 82 |
+
"There is a TypeError in the code: you cannot add a string and a number together. You need to replace 5 with '5' or use an f-string. I am invoking the patch_file tool."
|
| 83 |
+
|
| 84 |
+
[SPAN] [Tool Call: patch_file]
|
| 85 |
+
Arguments: {"path": "script.py", "edit": "print(f'Hello {5}')"}
|
| 86 |
+
Response: "File patched successfully."
|
| 87 |
+
|
| 88 |
+
[TRACE END] Agent completed the task.
|
| 89 |
"""
|
| 90 |
|
| 91 |
messages = [
|
| 92 |
{"role": "user", "content": trace},
|
| 93 |
]
|
| 94 |
|
| 95 |
+
prompt = tokenizer.apply_chat_template(
|
| 96 |
messages,
|
| 97 |
+
tokenize=False,
|
| 98 |
add_generation_prompt=True,
|
| 99 |
+
)
|
| 100 |
+
|
| 101 |
+
inputs = tokenizer(
|
| 102 |
+
prompt,
|
| 103 |
return_tensors="pt",
|
| 104 |
+
add_special_tokens=False,
|
| 105 |
).to(model.device)
|
| 106 |
|
| 107 |
with torch.inference_mode():
|
| 108 |
output = model.generate(
|
| 109 |
+
**inputs,
|
| 110 |
max_new_tokens=512,
|
| 111 |
do_sample=False,
|
| 112 |
)
|
| 113 |
|
| 114 |
result = tokenizer.decode(
|
| 115 |
+
output[0][inputs["input_ids"].shape[1]:],
|
| 116 |
skip_special_tokens=True,
|
| 117 |
)
|
| 118 |
|
|
|
|
| 140 |
## Limitations
|
| 141 |
|
| 142 |
- Not a general-purpose conversational assistant.
|
|
|
|
| 143 |
- Designed around the specific structured output format above.
|
| 144 |
- Accuracy depends on the information available in the input trace.
|
| 145 |
- May omit details when the input exceeds its context or output budget.
|
|
|
|
| 154 |
|
| 155 |
## License
|
| 156 |
|
| 157 |
+
This model is based on Qwen3.5-0.8B. Check the base model's license and applicable terms before redistribution or commercial use. The license for this model is OpenMDW-1.1
|