Text Generation
PEFT
Safetensors
qlora
stiefel-manifold
continuous-reasoning
float32-precision
cag-truth-gate
pmtp-zero-token
polydim-einsof
conversational
Run this model with HF Jobs
Run Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter 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/Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter. 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/Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter 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.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("THUDM/glm-4-9b-chat") model = PeftModel.from_pretrained(base_model, "Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter") - Notebooks
- Google Colab
- Kaggle
File size: 1,094 Bytes
fec028f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | {
"slug": "glm4-9b-stiefel",
"repo_id": "Polydim-Einsof/einsof2-glm4-9b-stiefel-adapter",
"family": "glm4",
"base_model": "THUDM/glm-4-9b-chat",
"weights_path": "E:\\Polydim_2027_core\\Qlora\\adapters\\glm4-9b-stiefel\\adapter_model.safetensors",
"total_tensors": 320,
"lora_b_tensors": 160,
"saved_dtype": "float32",
"before_retraction": {
"dtypes": [
"torch.bfloat16"
],
"mean_stiefel_defect": 0.0006377253520173336,
"max_stiefel_defect": 0.003348741201084896
},
"after_retraction": {
"dtypes": [
"torch.float32"
],
"max_stiefel_defect_fp64": 7.771561172376096e-16,
"mean_stiefel_defect_fp64": 3.7331249203020887e-16,
"max_stiefel_defect_fp32": 3.7267727488811036e-08,
"mean_stiefel_defect_fp32": 9.113424396330961e-09,
"max_frob_energy_drift": 9.992063844354152e-16
},
"certified_bounds": {
"fp64_horner_defect_bound": "<= 1.0e-15",
"fp32_storage_defect_bound": "<= 1.0e-5",
"frob_energy_drift_bound": "<= 1.0e-3 (0.1%)",
"status": "CERTIFIED_EXIT_CODE_0"
}
} |