Image-Text-to-Text
Transformers
Safetensors
Rust
English
qwen3_5_text
text-generation
esper
esper-4
valiant
valiant-labs
qwen
qwen-3.6
qwen-3.6-27b
27b
reasoning
code
code-instruct
python
typescript
javascript
java
c++
c
c#
go
haskell
dev-ops
jenkins
terraform
ansible
docker
kubernetes
helm
grafana
prometheus
shell
bash
azure
aws
gcp
cloud
scripting
powershell
problem-solving
architect
engineer
developer
creative
analytical
expert
rationality
conversational
chat
instruct
Instructions to use TELEGENIX/Zengorithm-v1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TELEGENIX/Zengorithm-v1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="TELEGENIX/Zengorithm-v1.0") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TELEGENIX/Zengorithm-v1.0") model = AutoModelForCausalLM.from_pretrained("TELEGENIX/Zengorithm-v1.0") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] 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
- vLLM
How to use TELEGENIX/Zengorithm-v1.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TELEGENIX/Zengorithm-v1.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TELEGENIX/Zengorithm-v1.0", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/TELEGENIX/Zengorithm-v1.0
- SGLang
How to use TELEGENIX/Zengorithm-v1.0 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 "TELEGENIX/Zengorithm-v1.0" \ --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": "TELEGENIX/Zengorithm-v1.0", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "TELEGENIX/Zengorithm-v1.0" \ --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": "TELEGENIX/Zengorithm-v1.0", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use TELEGENIX/Zengorithm-v1.0 with Docker Model Runner:
docker model run hf.co/TELEGENIX/Zengorithm-v1.0
| # app.py | |
| import gradio as gr | |
| import subprocess | |
| import os | |
| import time | |
| import threading | |
| import tempfile | |
| import shutil | |
| from transformers import AutoModelForCausalLM, AutoTokenizer | |
| import torch | |
| from system_prompt import SYSTEM_PROMPT | |
| # ------------------ Model Loading ------------------ | |
| print("Loading model...") | |
| model_path = "/root/llm-abliteration/Qwen3.6-27B-Esper4" # adjust if needed | |
| tokenizer = AutoTokenizer.from_pretrained(model_path) | |
| model = AutoModelForCausalLM.from_pretrained( | |
| model_path, | |
| torch_dtype=torch.bfloat16, | |
| device_map="auto", | |
| trust_remote_code=True | |
| ) | |
| print("Model loaded.") | |
| # ------------------ Conversation Memory ------------------ | |
| conversation_history = [] # list of dicts {"role": "user"|"assistant", "content": ...} | |
| # ------------------ Helper: generate response ------------------ | |
| def generate_response(user_input): | |
| # Build the full prompt with system prompt and conversation | |
| messages = [{"role": "system", "content": SYSTEM_PROMPT}] | |
| for msg in conversation_history: | |
| messages.append(msg) | |
| messages.append({"role": "user", "content": user_input}) | |
| # Tokenize and generate | |
| prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True) | |
| inputs = tokenizer(prompt, return_tensors="pt").to(model.device) | |
| outputs = model.generate( | |
| **inputs, | |
| max_new_tokens=4096, | |
| temperature=0.7, | |
| do_sample=True, | |
| pad_token_id=tokenizer.eos_token_id | |
| ) | |
| response = tokenizer.decode(outputs[0], skip_special_tokens=True) | |
| # Extract the assistant's reply (after the last user turn) | |
| # For simplicity, we assume the model outputs the whole conversation; we'll split | |
| # This is crude; better to use the chat template properly. | |
| # But for this demo, we'll take everything after the last "assistant" tag. | |
| parts = response.split("assistant") | |
| if len(parts) > 1: | |
| reply = parts[-1].strip() | |
| else: | |
| reply = response | |
| return reply | |
| # ------------------ Chat function ------------------ | |
| def chat_fn(message, history): | |
| global conversation_history | |
| # Append user message | |
| conversation_history.append({"role": "user", "content": message}) | |
| # Generate response | |
| reply = generate_response(message) | |
| # Append assistant reply to history | |
| conversation_history.append({"role": "assistant", "content": reply}) | |
| return reply | |
| # ------------------ Visualisation Window ------------------ | |
| # We'll use an iframe to show a running web app (if the generated code is a web server) | |
| # Or we can open a separate browser window using webbrowser. | |
| # We'll also allow the user to run the code they get. | |
| def run_code(code): | |
| """Execute the last code block from the conversation and display output.""" | |
| # Extract code from the last assistant message | |
| last_assistant = None | |
| for msg in reversed(conversation_history): | |
| if msg["role"] == "assistant": | |
| last_assistant = msg["content"] | |
| break | |
| if not last_assistant: | |
| return "No code to run." | |
| # Look for ```python ... ``` blocks | |
| import re | |
| code_blocks = re.findall(r"```python\n(.*?)```", last_assistant, re.DOTALL) | |
| if not code_blocks: | |
| return "No Python code block found." | |
| code = code_blocks[-1] # take the last one | |
| # Write to a temp file and run | |
| with tempfile.NamedTemporaryFile(mode='w', suffix='.py', delete=False) as f: | |
| f.write(code) | |
| fname = f.name | |
| try: | |
| result = subprocess.run(['python', fname], capture_output=True, text=True, timeout=10) | |
| output = result.stdout + result.stderr | |
| except subprocess.TimeoutExpired: | |
| output = "Execution timed out." | |
| finally: | |
| os.unlink(fname) | |
| return output | |
| # ------------------ Gradio UI ------------------ | |
| with gr.Blocks(title="Zengorithm IDE") as demo: | |
| gr.Markdown("# 🧠 Zengorithm – Unrestricted AI Developer") | |
| with gr.Row(): | |
| with gr.Column(scale=2): | |
| # Chat interface | |
| chatbot = gr.Chatbot(label="Zengorithm Chat") | |
| msg = gr.Textbox(label="Your message", placeholder="Ask me to build anything...") | |
| clear = gr.Button("Clear Conversation") | |
| with gr.Column(scale=1): | |
| # Visualisation / Output area | |
| gr.Markdown("### 📺 Live Output") | |
| output_text = gr.Textbox(label="Execution Output", lines=20, interactive=False) | |
| run_btn = gr.Button("▶ Run Last Code") | |
| # Optional: iframe to display a web server (if the code starts a web server) | |
| # We'll add a placeholder; the user can manually open a browser. | |
| gr.Markdown("#### 🔗 Web View (if web server)") | |
| web_iframe = gr.HTML('<iframe src="http://localhost:7860" width="100%" height="300"></iframe>') | |
| # Event handlers | |
| def respond(message, history): | |
| reply = chat_fn(message, history) | |
| history.append((message, reply)) | |
| return "", history | |
| msg.submit(respond, [msg, chatbot], [msg, chatbot]) | |
| clear.click(lambda: (None, []), None, [chatbot, msg], queue=False) | |
| def run_last(): | |
| return run_code(None) | |
| run_btn.click(run_last, inputs=[], outputs=output_text) | |
| demo.launch(server_name="0.0.0.0", server_port=7860) | |