Text Generation
Transformers
Safetensors
qwen3_5_text
decision-making
multiple-choice
conversational
Instructions to use plantwaterer/eshbartur with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use plantwaterer/eshbartur with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="plantwaterer/eshbartur") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("plantwaterer/eshbartur") model = AutoModelForCausalLM.from_pretrained("plantwaterer/eshbartur", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use plantwaterer/eshbartur with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "plantwaterer/eshbartur" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "plantwaterer/eshbartur", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/plantwaterer/eshbartur
- SGLang
How to use plantwaterer/eshbartur with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "plantwaterer/eshbartur" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "plantwaterer/eshbartur", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "plantwaterer/eshbartur" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "plantwaterer/eshbartur", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use plantwaterer/eshbartur with Docker Model Runner:
docker model run hf.co/plantwaterer/eshbartur
Download selfcheck.py from plantwaterer/eshbartur: direct link, hf CLI and curl.
- Browser
- Download file 1.78 kB
-
https://huggingface.co/plantwaterer/eshbartur/resolve/main/selfcheck.py
- Command line
-
hf download hf://plantwaterer/eshbartur/selfcheck.py
-
curl -L -o selfcheck.py https://huggingface.co/plantwaterer/eshbartur/resolve/main/selfcheck.py
1.78 kB
| """Check the installed environment on the GPU: PyTorch CUDA, flash-linear-attention, transformers, eshbartur module, | |
| and the repository's files. Exits with a message if any of that fails. uv run --frozen python selfcheck.py""" | |
| import json | |
| import sys | |
| from pathlib import Path | |
| sys.path.insert(0, str(Path(__file__).resolve().parent)) | |
| def fail(msg): | |
| print("selfcheck: FAILED: " + msg, file=sys.stderr) | |
| sys.exit(1) | |
| try: | |
| import torch | |
| except ImportError as e: | |
| fail(f"torch does not import ({e}); run `uv sync --frozen` again") | |
| if not torch.cuda.is_available(): | |
| fail("torch sees no GPU") | |
| x = torch.randn(256, 256, device="cuda:0", dtype=torch.bfloat16) | |
| y = x @ x | |
| torch.cuda.synchronize() | |
| if not bool(torch.isfinite(y.float()).all()): | |
| fail("bf16 matmul on the GPU gave non-finite values") | |
| try: | |
| import fla # noqa: F401 | |
| import transformers | |
| from transformers import Qwen3_5ForCausalLM # noqa: F401 | |
| except ImportError as e: | |
| fail(f"required package missing ({e})") | |
| import eshbartur as engine_module | |
| here = Path(engine_module.__file__).parent | |
| cfg = json.loads((here / "eshbartur.json").read_text()) | |
| missing = [f for f in cfg["files"] if not (here / f).is_file()] | |
| if missing: | |
| fail(f"{len(missing)} of the repository's files are missing here, e.g. {missing[:3]}; download the whole repository") | |
| small = [f for f in cfg["files"] if (here / f).stat().st_size < 50_000_000] | |
| bad = [f for f in small if engine_module.sha256(here / f) != cfg["files"][f]] | |
| if bad: | |
| fail(f"sha256 of {bad[:3]} does not match eshbartur.json") | |
| print( | |
| f"selfcheck: passed (torch {torch.__version__}, transformers {transformers.__version__}, " | |
| f"{torch.cuda.get_device_name(0)}, {len(cfg['files'])} files present, {len(small)} small files' sha256 ok)" | |
| ) | |