Feature Extraction
Transformers
Safetensors
qwen3_5
matilda
jev
fp4
quantized
maincode
8-bit precision
Instructions to use Maincode/matilda-jev-fp4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Maincode/matilda-jev-fp4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Maincode/matilda-jev-fp4")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("Maincode/matilda-jev-fp4") model = AutoModel.from_pretrained("Maincode/matilda-jev-fp4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download kev/types.py from Maincode/matilda-jev-fp4: direct link, hf CLI and curl.
- Browser
- Download file 1.85 kB
-
https://huggingface.co/Maincode/matilda-jev-fp4/resolve/main/kev/types.py
- Command line
-
hf download hf://Maincode/matilda-jev-fp4/kev/types.py
-
curl -L -o types.py https://huggingface.co/Maincode/matilda-jev-fp4/resolve/main/kev/types.py
1.85 kB
| """Shared decision schema and dataset records.""" | |
| from pathlib import Path | |
| from typing import Literal, NotRequired, TypedDict | |
| from PIL import Image | |
| type JSONValue = str | int | float | bool | None | list[JSONValue] | dict[str, JSONValue] | |
| type Content = str | dict[str, JSONValue] | list[JSONValue] | |
| type ImageInput = str | Path | Image.Image | |
| type Label = str | int | bool | |
| type Target = Label | float | list[float] | |
| class QuestionBase(TypedDict): | |
| instructions: NotRequired[Content | None] | |
| class ChoiceQuestion(QuestionBase): | |
| type: Literal["choice"] | |
| criteria: dict[str, Content | None] | |
| class NoulQuestion(QuestionBase): | |
| type: Literal["noul"] | |
| criteria: NotRequired[dict[Literal["true", "false"], Content | None] | None] | |
| class ScoreQuestion(QuestionBase): | |
| type: Literal["score"] | |
| criteria: list[Content] | |
| type Question = ChoiceQuestion | NoulQuestion | ScoreQuestion | |
| class DecisionInput(TypedDict): | |
| state: Content | |
| question: Question | |
| images: NotRequired[list[ImageInput]] | |
| class Example(DecisionInput): | |
| id: str | |
| suite: str | |
| family: str | |
| label: Label | |
| target: Target | |
| source: dict[str, JSONValue] | |
| class ChoiceAnswer(TypedDict): | |
| type: Literal["choice"] | |
| choice: str | |
| probabilities: dict[str, float] | |
| confidence: float | |
| class NoulAnswer(TypedDict): | |
| type: Literal["noul"] | |
| noul: float | |
| class ScoreAnswer(TypedDict): | |
| type: Literal["score"] | |
| score: float | |
| legend: dict[str, Content | None] | |
| probabilities: dict[str, float] | |
| confidence: float | |
| type Answer = ChoiceAnswer | NoulAnswer | ScoreAnswer | |
| class Usage(TypedDict, total=False): | |
| input_tokens: int | |
| output_tokens: int | |
| class DecisionResponse(TypedDict): | |
| answers: dict[str, Answer] | |
| usage: Usage | |
| model: NotRequired[str] | |
| id: NotRequired[str] | |
| provider: NotRequired[str] | |