Back to Skills

llm-inference

dave1010
Updated 3 days ago
16 views
0
View on GitHub
Designaidesign

About

This skill enables LLM inference through Cloudflare Pages functions with OpenAI-compatible endpoints. It provides access to multiple models with different capabilities, including high-performance options like gpt-oss-120b and specialized models for various tasks. Use this when you need to integrate LLM capabilities into your applications and want the agent to select the most suitable model based on your requirements.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/dave1010/tools
Git CloneAlternative
git clone https://github.com/dave1010/tools.git ~/.claude/skills/llm-inference

Copy and paste this command in Claude Code to install this skill

Documentation

LLM Inference

The Cloudflare Pages function functions/cerebras-chat.ts provides OpenAI-compatible LLM inference. See tools/cerebras-llm-inference/index.html for a working example.

Available models

ModelMax context tokensRequests / minuteTokens / minute
gpt-oss-120b65,5363064,000
llama-3.3-70b65,5363064,000
llama3.1-8b8,1923060,000
qwen-3-235b-a22b-instruct-250765,5363064,000
qwen-3-235b-a22b-thinking-250765,5363060,000
qwen-3-32b65,5363064,000
zai-glm-4.664,00010150,000
  • llama3.1-8b is the fastest option.
  • zai-glm-4.6 is the most powerful option.
  • gpt-oss-120b remains the best all rounder.

LLMs are not just for chat: they can be used to process any string in any arbitrary way. If making a tool that requires the LLM to respond in a specific way or format then be very clear and explicit in its system prompt; eg what to include/exclude, plain/markdown formatting, length, etc.

GitHub Repository

dave1010/tools
Path: .skills/llm-inference

Related Skills

sglang

Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill

evaluating-llms-harness

Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill

llamaguard

Other

LlamaGuard is Meta's 7-8B parameter model for moderating LLM inputs and outputs across six safety categories like violence and hate speech. It offers 94-95% accuracy and can be deployed using vLLM, Hugging Face, or Amazon SageMaker. Use this skill to easily integrate content filtering and safety guardrails into your AI applications.

View skill