Download and run locally
Use Python 3.10 or newer. A CUDA-enabled PyTorch installation is needed for GPU inference. The example can also run on CPU.
python3 -m venv .venvsource .venv/bin/activatepython -m pip install huggingface_hubhf download Egrove/EGS-llm-1b --local-dir EGS-llm-1bcd EGS-llm-1bpython -m pip install -r requirements.txtpython example.py --prompt "Explain why descriptive alt text matters for website accessibility."
example.py prints the generated response and uses a CUDA GPU when available. To choose a device explicitly, pass --device cpu or --device cuda. After downloading the files and installing the dependencies, you can run the example offline.
Python example
After installing the dependencies above, run this from the downloaded model folder. Change the message to try your own prompt.
from pathlib import Path import torchfrom transformers import AutoModelForCausalLM, AutoTokenizer model_dir = Path.cwd()device = "cuda" if torch.cuda.is_available() else "cpu"dtype = torch.float16 if device == "cuda" else torch.float32 tokenizer = AutoTokenizer.from_pretrained(model_dir, local_files_only=True)model = AutoModelForCausalLM.from_pretrained( model_dir, dtype=dtype, local_files_only=True, use_safetensors=True).to(device).eval() messages = [ {"role": "user", "content": "Explain why descriptive alt text matters for website accessibility."}]prompt = tokenizer.apply_chat_template( messages, tokenize=False, add_generation_prompt=True)inputs = tokenizer(prompt, return_tensors="pt", add_special_tokens=False).to(device) with torch.inference_mode(): output = model.generate(**inputs, max_new_tokens=128, do_sample=False) new_tokens = output[0, inputs["input_ids"].shape[-1]:]print(tokenizer.decode(new_tokens, skip_special_tokens=True))
Intended uses
Table with columns: Use case, What you can ask for| Use case | What you can ask for |
|---|
| Technical SEO | Explain a crawl or indexing issue and draft a checklist to verify the fix. |
| Accessibility | Review an HTML snippet in context and suggest wording or markup changes for a human reviewer. |
| Structured data | Draft JSON-LD from verified page details and list fields that still need confirmation. |
| Audit handoff | Turn several findings into developer tickets with priorities and acceptance criteria. |
Example prompts
Investigate an indexing issue
Our preferred product URL appears in the sitemap, but its canonical tag points to a category page. Explain the potential indexing impact, suggest a fix, and list three checks to run after deployment.
Review alternative text
An image of a navy backpack is the only content inside a link to its product page. Suggest alternative text that makes the link’s purpose clear.
Draft structured data
Draft Product JSON-LD using only these facts. The product name is Trail Daypack, the price is USD 59, and it is in stock. List any other page details I should verify before publishing.
Working with audit findings
Include the affected URL, the exact audit finding, and the relevant HTML or page details. Ask for a proposed fix and a verification step. Use current crawl data, accessibility testing, and structured data validators to confirm changes before publishing.
License
See the Apache License 2.0 included with this release.