Instructions to use ArthurZ/JEV-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ArthurZ/JEV-9B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ArthurZ/JEV-9B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download decision_template.jinja from ArthurZ/JEV-9B: direct link, hf CLI and curl.
- Browser
- Download file 994 Bytes
-
https://huggingface.co/ArthurZ/JEV-9B/resolve/main/decision_template.jinja
- Command line
-
hf download hf://ArthurZ/JEV-9B/decision_template.jinja
-
curl -L -o decision_template.jinja https://huggingface.co/ArthurZ/JEV-9B/resolve/main/decision_template.jinja
994 Bytes
| {%- macro s(x) %}{{ "" if x is none else x if x is string else x|tojson }}{% endmacro -%} | |
| {%- macro st(x) -%} | |
| {%- if x is string %}{{ x }}{% elif x is mapping %}{{ x|tojson }}{% else -%} | |
| {%- for p in x -%} | |
| {%- if p is string %}{{ p }} | |
| {%- elif p is mapping and ("image" in p or p.get("type") == "image_url") %}{{ raise_exception("bare-v1 text template: images are not supported") }} | |
| {%- elif p is mapping and p.get("type") == "text" %}{{ p["text"] }} | |
| {%- else %}{{ p|tojson }}{% endif -%} | |
| {%- endfor -%} | |
| {%- endif -%} | |
| {%- endmacro -%} | |
| {{- "[kind] " ~ question.type ~ "\n[state] " ~ st(state) ~ "\n[question] " ~ s(question.instructions) ~ "\n[options]\n" -}} | |
| {%- for o in question.options -%} | |
| {%- set d = question.descriptions[loop.index0] -%} | |
| {%- if question.type == "choice" %}{{ question.labels[loop.index0] ~ ") " ~ o ~ (": " ~ s(d) if d is not none and d != "" else "") }} | |
| {%- else %}{{ o }}{% endif -%} | |
| {{- "\n" if not loop.last else "" -}} | |
| {%- endfor -%} | |
| {{- "\n[decision]:<|mark|>" -}} | |