Skip to content

Instantly share code, notes, and snippets.

View MedUnes's full-sized avatar
🌴
I may be slow to respond.

medunes MedUnes

🌴
I may be slow to respond.
View GitHub Profile
@MedUnes
MedUnes / differential_fuzz.py
Created November 23, 2026 14:29
Inkling tool-arg streaming checks (vLLM #69267, #69297)
# Differential check for the Inkling arg_value_extender fix (vLLM #69267).
# Streams random Inkling tool-call sequences through InklingParser and compares
# against extract_tool_calls; pickles the streamed output so two trees (main vs
# patched) can be diffed. Run from a vLLM checkout:
# PYTHONPATH=. python differential_fuzz.py <seed> <cases> <out.pkl>
import json, random, sys
from unittest.mock import MagicMock
from tests.parser.engine.conftest import make_mock_tokenizer
from vllm.entrypoints.openai.chat_completion.protocol import ChatCompletionRequest, ChatCompletionToolsParam, FunctionDefinition
@MedUnes
MedUnes / createElasticClient.go
Created July 14, 2025 13:51
createElasticClient.go
/**
* Create an elasticearch instance
**/
package main
import (
"crypto/tls"
"log"
"net/http"
@MedUnes
MedUnes / last_tag.sh
Last active June 12, 2022 20:47
[Bash] Get the n(th) git tag
#!/bin/bash
n=$1
git for-each-ref --sort=-taggerdate | grep refs/tags/v | cut -d '/' -f 3 | head -$n | tail -1