Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/691c1dba-9228-800f-8463-13b3a9006306
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== 1. Install prerequisites (drivers, Python). ==== # Clone and run text-generation-webui or llama.cpp. # Download and place a quantized 7B model in models/. # Start webui: python server.py --model <model_dir> --load-in-8bit (or appropriate flags). # Hook runtime: expose a small Python script that calls local web UI API to send HPL-compiled steps and receives responses. # Implement carousel_ingot() to store ingots with SHA256 into memory/ingots.json and FAISS index. # Use ZCP guard wrappers for runtime functions. ==== <syntaxhighlight lang="python"># hpl_runner.py ==== import requests, json, sqlite3, hashlib, time API = "http://127.0.0.1:5000/api/v1/generate" # webui endpoint def call_local_llm(prompt): resp = requests.post(API, json={"prompt": prompt, "max_new_tokens": 512}) return resp.json()["text"] def run_protocol(manifest, ctx): # minimal step runner log = [] for step in manifest["steps"]: prompt = f"Step: {step['do']}\nContext: {ctx}\n" out = call_local_llm(prompt) log.append(out) ingot = carousel_ingot(log, title=manifest["title"]) save_ingot_db(ingot) return ingot </syntaxhighlight>
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)