Recent Posts
Archives

Posts Tagged ‘RobertoCarratalá’

PostHeaderIcon [DevoxxBE2025] Local Development in the AI Era

Lecturer

Roberto Carratalá is a Principal AI Architect at Red Hat, specializing in container orchestration, AI/ML, and cloud-native platforms. Kevin Dubois is a Senior Principal Developer Advocate at Red Hat, with expertise in improving developer experiences through open-source tools and containerization.

Abstract

This discourse addresses obstacles in maintaining local AI development amid cloud reliance, identifying solutions for offline model execution and code assistance. It explains innovations in local inference tools and model comparisons, framed by desires for autonomy in workflows. Detailing approaches for hardware optimization and framework integrations like Quarkus, it scrutinizes effects on experimentation and privacy. Ramifications for cost-effective innovation and ethical data handling are discussed, guiding sustainable AI practices.

Barriers to Offline AI Workflows

AI’s integration into creation workflows has heightened dependencies on remote services, introducing delays, expenses, and data risks. Developers prefer local environments for mastery over factors like connectivity and setups, but model demands often require clouds.

Roberto and Kevin emphasize local alternatives to preserve independence. Contextually, this counters API costs and quotas, enabling unrestricted trials. Implications: enhanced privacy for proprietary code, vital in secure sectors.

Challenges: hardware constraints limit large models; quantization compresses them for consumer devices. Methodologically, tools like Ollama manage deployments, allowing terminal or IDE interactions.

Deploying and Assessing Local Models

Local deployment uses Ollama for simplicity: installing and running models like Phi-3. Commands:

ollama install phi3
ollama run phi3

Assessment compares sizes: 3.8B Phi-3 versus 70B Llama 3, trading depth for speed. Smaller models run on CPUs, suiting laptops; GPUs accelerate via frameworks.

Code assistants like Continue.dev integrate, configuring for VS Code with local backends. Demos generate Java code, refining via prompts.

For apps, Quarkus with LangChain4j embeds AI. Agents use local models for tasks, code:

AiServices.create(Assistant.class)
    .withChatModel(OllamaChatModel.builder()
        .url("http://localhost:11434")
        .model("phi3")
        .build())
    .withTools(Calculator.class)
    .build();

This enables offline agents. Analysis: smaller models suffice for dev, with tool calls enhancing functionality.

Model Comparisons and Security Considerations

Comparisons: Microsoft’s Phi for compactness, Meta’s Llama for versatility. Quantization (FP32 to INT4) fits 7B models on 8GB RAM.

Assistants: Continue for flexibility, Cursor for editing, but local variants ensure offline use.

Security: reputable sources like Hugging Face prevent malware. Implications: balanced performance-accuracy for local runs.

Enhancing Developer Autonomy and Prospects

Local AI maintains control, reducing barriers. Implications: cost savings, secure trials.

Future: NPUs optimize inference; open models spur community advances.

In essence, local strategies empower efficient AI adoption, merging independence with progress.

Links:

  • Lecture video: https://www.youtube.com/watch?v=HeQErLzvnhc
  • Roberto Carratalá on LinkedIn: https://es.linkedin.com/in/rcarrata
  • Kevin Dubois on LinkedIn: https://ch.linkedin.com/in/kevindubois
  • Kevin Dubois on Twitter/X: https://twitter.com/kevin_dubois
  • Red Hat website: https://www.redhat.com/