Text Generation
Transformers
Safetensors
qwen3
cooking
recipes
dpo
provenance
abstention
conversational
text-generation-inference
Instructions to use HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant") 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("HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant") model = AutoModelForCausalLM.from_pretrained("HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant", 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 HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant
- SGLang
How to use HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant 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 "HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant" \ --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": "HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant", "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 "HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant" \ --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": "HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant with Docker Model Runner:
docker model run hf.co/HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant
rename: Qwen3-8B Cooking Assistant
Browse files
README.md
CHANGED
|
@@ -6,14 +6,14 @@ library_name: transformers
|
|
| 6 |
pipeline_tag: text-generation
|
| 7 |
language: [en, es, pt, it, fr, nl, de, ru, bn, id, fa, ja, pl, sv, vi, tl, he, ml, tr, zh, ms, th, fi, ar, ta, hi]
|
| 8 |
tags: [cooking, recipes, lora, dpo, qwen3, provenance, abstention]
|
| 9 |
-
datasets: [HumanjavaEnterprises/cooking-eval]
|
| 10 |
---
|
| 11 |
|
| 12 |
-
# Qwen3-8B Cooking
|
| 13 |
|
| 14 |
A multilingual cooking assistant fine-tuned from Qwen3-8B on public-domain and openly licensed cookbooks, as
|
| 15 |
full-precision (bf16) safetensors for Transformers and vLLM. For llama.cpp, Ollama and LM Studio:
|
| 16 |
-
[HumanjavaEnterprises/Qwen3-8B-Cooking-GGUF](https://huggingface.co/HumanjavaEnterprises/Qwen3-8B-Cooking-GGUF).
|
| 17 |
|
| 18 |
It answers from the recipe you give it, asks for the recipe when an answer depends on one it cannot see, and gives
|
| 19 |
full answers to general cooking questions. It does not memorise recipes: give it the recipe (paste it, or have your
|
|
@@ -28,14 +28,14 @@ architecture and tokenizer as Qwen3-8B (~16 GB). The GGUF files in the sibling r
|
|
| 28 |
|
| 29 |
```bash
|
| 30 |
# vLLM
|
| 31 |
-
vllm serve HumanjavaEnterprises/Qwen3-8B-Cooking --max-model-len 8192
|
| 32 |
# then send requests with "chat_template_kwargs": {"enable_thinking": false}
|
| 33 |
```
|
| 34 |
|
| 35 |
```python
|
| 36 |
# Transformers
|
| 37 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 38 |
-
repo = "HumanjavaEnterprises/Qwen3-8B-Cooking"
|
| 39 |
tok = AutoTokenizer.from_pretrained(repo)
|
| 40 |
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype="auto", device_map="auto")
|
| 41 |
messages = [{"role": "system", "content": "You are a cooking assistant. You answer questions about dishes, ingredients, techniques and food safety. When you are not sure, you say so."},
|
|
@@ -47,7 +47,7 @@ print(tok.decode(model.generate(ids, max_new_tokens=400)[0][ids.shape[1]:], skip
|
|
| 47 |
## Versions
|
| 48 |
|
| 49 |
The model is one product with dated versions. Each version is a git tag on this repo, so you can pin one with
|
| 50 |
-
`revision="v8"` (Transformers / huggingface_hub) or `ollama run vveerrgg/qwen3-8b-cooking:v8`.
|
| 51 |
|
| 52 |
| Version | Date | Invents (no recipe, 3 of 4 judges) | Correct (recipe shown, 3 of 4 judges) | Notes |
|
| 53 |
|---|---|---|---|---|
|
|
@@ -174,7 +174,7 @@ model did not: all were deflections or explicit rebuttals, none complied.
|
|
| 174 |
|
| 175 |
The evaluation set behind every number on this card (all 682 questions, both models' answers, every judge's verdict,
|
| 176 |
and per-row source credits) is published so the results can be checked:
|
| 177 |
-
[HumanjavaEnterprises/cooking-eval](https://huggingface.co/datasets/HumanjavaEnterprises/cooking-eval).
|
| 178 |
|
| 179 |
## What went wrong along the way
|
| 180 |
|
|
|
|
| 6 |
pipeline_tag: text-generation
|
| 7 |
language: [en, es, pt, it, fr, nl, de, ru, bn, id, fa, ja, pl, sv, vi, tl, he, ml, tr, zh, ms, th, fi, ar, ta, hi]
|
| 8 |
tags: [cooking, recipes, lora, dpo, qwen3, provenance, abstention]
|
| 9 |
+
datasets: [HumanjavaEnterprises/cooking-assistant-eval]
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Qwen3-8B Cooking Assistant
|
| 13 |
|
| 14 |
A multilingual cooking assistant fine-tuned from Qwen3-8B on public-domain and openly licensed cookbooks, as
|
| 15 |
full-precision (bf16) safetensors for Transformers and vLLM. For llama.cpp, Ollama and LM Studio:
|
| 16 |
+
[HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant-GGUF](https://huggingface.co/HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant-GGUF).
|
| 17 |
|
| 18 |
It answers from the recipe you give it, asks for the recipe when an answer depends on one it cannot see, and gives
|
| 19 |
full answers to general cooking questions. It does not memorise recipes: give it the recipe (paste it, or have your
|
|
|
|
| 28 |
|
| 29 |
```bash
|
| 30 |
# vLLM
|
| 31 |
+
vllm serve HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant --max-model-len 8192
|
| 32 |
# then send requests with "chat_template_kwargs": {"enable_thinking": false}
|
| 33 |
```
|
| 34 |
|
| 35 |
```python
|
| 36 |
# Transformers
|
| 37 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 38 |
+
repo = "HumanjavaEnterprises/Qwen3-8B-Cooking-Assistant"
|
| 39 |
tok = AutoTokenizer.from_pretrained(repo)
|
| 40 |
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype="auto", device_map="auto")
|
| 41 |
messages = [{"role": "system", "content": "You are a cooking assistant. You answer questions about dishes, ingredients, techniques and food safety. When you are not sure, you say so."},
|
|
|
|
| 47 |
## Versions
|
| 48 |
|
| 49 |
The model is one product with dated versions. Each version is a git tag on this repo, so you can pin one with
|
| 50 |
+
`revision="v8"` (Transformers / huggingface_hub) or `ollama run vveerrgg/qwen3-8b-cooking-assistant:v8`.
|
| 51 |
|
| 52 |
| Version | Date | Invents (no recipe, 3 of 4 judges) | Correct (recipe shown, 3 of 4 judges) | Notes |
|
| 53 |
|---|---|---|---|---|
|
|
|
|
| 174 |
|
| 175 |
The evaluation set behind every number on this card (all 682 questions, both models' answers, every judge's verdict,
|
| 176 |
and per-row source credits) is published so the results can be checked:
|
| 177 |
+
[HumanjavaEnterprises/cooking-assistant-eval](https://huggingface.co/datasets/HumanjavaEnterprises/cooking-assistant-eval).
|
| 178 |
|
| 179 |
## What went wrong along the way
|
| 180 |
|