Run this model with HF Jobs
Run Mayank022/personaplex-edge-q4 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Mayank022/personaplex-edge-q4. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Mayank022/personaplex-edge-q4 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Mayank022/personaplex-edge-q4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Mayank022/personaplex-edge-q4 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download Mayank022/personaplex-edge-q4 --local-dir personaplex-edge-q4
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Allow verified artifacts inside Hub checkouts
Browse files94 unmodified lines959697989910010 unmodified lines11111211311411511611711811912012112212312412512612712894 unmodified linesraise ArtifactError(f"Missing voice artifact: {path}")return pathdef validate_structure(self) -> None:schema = self.manifest.get("schema_version")if schema != 1:10 unmodified linesconfig = read_json(self.config_path)if config.get("moshi_name") != self.weight_path.name:raise ArtifactError("config.json moshi_name does not match the artifact manifest")expected = int(self.manifest["totals"]["artifact_bytes"])actual = directory_bytes(self.root) - (self.root / MANIFEST_FILENAME).stat().st_size# The manifest is excluded because its final byte size is unknown while creating it.if expected != actual:raise ArtifactError(f"Artifact byte count mismatch: expected {expected}, found {actual}")def verify_hashes(self) -> dict[str, dict[str, str]]:mismatches: dict[str, dict[str, str]] = {}for relative, record in self.manifest["files"].items():path = self.root / relativeif not path.is_file():mismatches[relative] = {"expected": record["sha256"], "actual": "missing"}continue94 unmodified lines959697989910010110210310410510610710810910 unmodified lines12012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015194 unmodified linesraise ArtifactError(f"Missing voice artifact: {path}")return pathdef _manifest_file_path(self, relative: str) -> Path:candidate = Path(relative)if candidate.is_absolute() or ".." in candidate.parts:raise ArtifactError(f"Unsafe artifact path in manifest: {relative}")path = (self.root / candidate).resolve()if not path.is_relative_to(self.root):raise ArtifactError(f"Artifact path escapes its root: {relative}")return pathdef validate_structure(self) -> None:schema = self.manifest.get("schema_version")if schema != 1:10 unmodified linesconfig = read_json(self.config_path)if config.get("moshi_name") != self.weight_path.name:raise ArtifactError("config.json moshi_name does not match the artifact manifest")files = self.manifest.get("files")if not isinstance(files, dict) or not files:raise ArtifactError("Artifact manifest has no file inventory")expected = int(self.manifest["totals"]["artifact_bytes"])declared = sum(int(record["bytes"]) for record in files.values())if expected != declared:raise ArtifactError(f"Artifact manifest byte count mismatch: expected {expected}, declared {declared}")incorrect_sizes = []actual = 0for relative, record in files.items():path = self._manifest_file_path(relative)file_bytes = path.stat().st_size if path.is_file() else -1if file_bytes != int(record["bytes"]):incorrect_sizes.append(relative)if file_bytes >= 0:actual += file_bytesif incorrect_sizes or expected != actual:names = ", ".join(sorted(incorrect_sizes))raise ArtifactError(f"Artifact file-size verification failed: {names}")def verify_hashes(self) -> dict[str, dict[str, str]]:mismatches: dict[str, dict[str, str]] = {}for relative, record in self.manifest["files"].items():path = self._manifest_file_path(relative)if not path.is_file():mismatches[relative] = {"expected": record["sha256"], "actual": "missing"}continue
src/personaplex_edge/artifact.py+28-5