Publish MicroLM structured semantics model
Browse filesFiles changed (6)
- README.mdAdded+11
- config.jsonAdded+12
- data_manifest.jsonAdded+55
- evaluation.jsonAdded+175
- model.safetensorsAdded+3
- training_manifest.jsonAdded+222
1234567891011---
license: apache-2.0
library_name: pytorch
tags:
- structured-output
- instruction-following
---
# MicroLM structured semantics
A small model trained from random initialization on Apache-2.0 HuggingFaceH4 instruction records. It predicts category, subcategory, and a documented response-shape field, then emits constrained JSON. Category/subcategory metrics cover source-labeled records only; this is not a general instruction-following model.123456789101112{
"model_type": "microlm_structured_semantics",
"vocab_size": 119,
"embedding_dim": 48,
"hidden_dim": 96,
"category_count": 6,
"subcategory_count": 21,
"shape_count": 5,
"real_data": true,
"source_dataset": "HuggingFaceH4/instruction-dataset",
"constrained_json": true
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{
"dataset_id": "microlm-h4-instruction-structured-v1",
"source_url": "https://huggingface.co/datasets/HuggingFaceH4/instruction-dataset/resolve/main/step3-eval.jsonl",
"source_dataset": "HuggingFaceH4/instruction-dataset",
"source_license": "Apache-2.0",
"redistribution_status": "PERMITTED_DERIVED_RECORDS_WITH_ATTRIBUTION",
"raw_sha256": "0111856e00a8cb645ed7e21b826930185a1416046d3f0468e0cc0f4de5397021",
"processed_sha256": "0cb19ef9191b7e26accc85f2cbb9604468488b6e0c61914036f953e925f23379",
"records_sha256": "7cb6efa2bab413e550a6942115ff1c9bdc8addb369244cc8c64573fab947c827",
"records": 327,
"train_records": 261,
"validation_records": 66,
"metadata_labeled_records": 75,
"categories": [
"Brainstorm",
"Commonsense/logic",
"Generation",
"Natural language to code",
"Question Answering",
"Summarization"
],
"subcategories": [
"Adding comments",
"Chain of Thought - answer the question, but explain the reasoning that led to the answer",
"Conversation",
"Debugging",
"ELI5",
"Email",
"Factual",
"Food",
"Interative QA",
"Letters",
"Make a list",
"Math",
"Movie",
"News",
"Paper",
"Poetry generation",
"Rewriting",
"Story generation",
"World knowledge",
"code explanation",
"code generation"
],
"response_shapes": [
"code",
"dialogue",
"list",
"numeric",
"prose"
],
"max_length": 256,
"split": "deterministic shuffled 80/20; semantic labels remain source metadata where present; response_shape is a documented derived rule",
"raw_source_not_republished": false
}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175{
"status": "PASS",
"project_id": "07-MicroLM",
"checkpoint_sha256": "e21b9869c21e0b9137404569940a0fd21e09f4c7482343fcbb2a6f72427c6021",
"loaded_parameter_hash": "a161a8f5679fc3395dbc9fa301fd405811138449cb2eaad3d7a76b75b7223962",
"training_parameter_hash": "a161a8f5679fc3395dbc9fa301fd405811138449cb2eaad3d7a76b75b7223962",
"checkpoint_matches_manifest": true,
"validation_records": 66,
"metadata_labeled_validation_records": 14,
"category_accuracy": 0.42857142857142855,
"subcategory_accuracy": 0.21428571428571427,
"response_shape_accuracy": 0.696969696969697,
"category_majority_baseline": 0.42857142857142855,
"subcategory_majority_baseline": 0.14285714285714285,
"response_shape_majority_baseline": 0.696969696969697,
"schema_execution_rate": 1.0,
"constrained_pair_execution_rate": 1.0,
"response_shape_execution_rate": 0.696969696969697,
"valid_pair_count": 20,
"examples": [
{
"expected_category": "Summarization",
"predicted_category": "Generation",
"expected_subcategory": "Conversation",
"predicted_subcategory": "Make a list",
"expected_response_shape": "prose",
"predicted_response_shape": "prose",
"constrained_json": {
"instruction_id": 52,
"category": "Generation",
"subcategory": "Make a list",
"response_shape": "prose"
},
"execution_checks": {
"schema_valid": true,
"observed_category_subcategory_pair": true,
"response_shape_match": false
}
},
{
"expected_category": null,
"predicted_category": "Generation",
"expected_subcategory": null,
"predicted_subcategory": "Make a list",
"expected_response_shape": "prose",
"predicted_response_shape": "prose",
"constrained_json": {
"instruction_id": 118,
"category": "Generation",
"subcategory": "Make a list",
"response_shape": "prose"
},
"execution_checks": {
"schema_valid": true,
"observed_category_subcategory_pair": true,
"response_shape_match": true
}
},
{
"expected_category": null,
"predicted_category": "Natural language to code",
"expected_subcategory": null,
"predicted_subcategory": "Interative QA",
"expected_response_shape": "prose",
"predicted_response_shape": "prose",
"constrained_json": {
"instruction_id": 241,
"category": "Natural language to code",
"subcategory": "Interative QA",
"response_shape": "prose"
},
"execution_checks": {
"schema_valid": true,
"observed_category_subcategory_pair": true,
"response_shape_match": true
}
},
{
"expected_category": null,
"predicted_category": "Generation",
"expected_subcategory": null,
"predicted_subcategory": "Make a list",
"expected_response_shape": "prose",
"predicted_response_shape": "prose",
"constrained_json": {
"instruction_id": 146,
"category": "Generation",
"subcategory": "Make a list",
"response_shape": "prose"
},
"execution_checks": {
"schema_valid": true,
"observed_category_subcategory_pair": true,
"response_shape_match": true
}
},
{
"expected_category": null,
"predicted_category": "Generation",
"expected_subcategory": null,
"predicted_subcategory": "Story generation",
"expected_response_shape": "prose",
"predicted_response_shape": "prose",
"constrained_json": {
"instruction_id": 253,
"category": "Generation",
"subcategory": "Story generation",
"response_shape": "prose"
},
"execution_checks": {
"schema_valid": true,
"observed_category_subcategory_pair": true,
"response_shape_match": false
}
},
{
"expected_category": null,
"predicted_category": "Commonsense/logic",
"expected_subcategory": null,
"predicted_subcategory": "World knowledge",
"expected_response_shape": "prose",
"predicted_response_shape": "prose",
"constrained_json": {
"instruction_id": 177,
"category": "Commonsense/logic",
"subcategory": "World knowledge",
"response_shape": "prose"
},
"execution_checks": {
"schema_valid": true,
"observed_category_subcategory_pair": true,
"response_shape_match": false
}
},
{
"expected_category": "Generation",
"predicted_category": "Summarization",
"expected_subcategory": "Story generation",
"predicted_subcategory": "Paper",
"expected_response_shape": "prose",
"predicted_response_shape": "prose",
"constrained_json": {
"instruction_id": 9,
"category": "Summarization",
"subcategory": "Paper",
"response_shape": "prose"
},
"execution_checks": {
"schema_valid": true,
"observed_category_subcategory_pair": true,
"response_shape_match": false
}
},
{
"expected_category": "Generation",
"predicted_category": "Summarization",
"expected_subcategory": "Story generation",
"predicted_subcategory": "Paper",
"expected_response_shape": "prose",
"predicted_response_shape": "prose",
"constrained_json": {
"instruction_id": 20,
"category": "Summarization",
"subcategory": "Paper",
"response_shape": "prose"
},
"execution_checks": {
"schema_valid": true,
"observed_category_subcategory_pair": true,
"response_shape_match": true
}
}
],
"disclosure": "Category/subcategory metrics apply only to records with source metadata; response_shape is derived from completion form. Constrained JSON guarantees structural validity and observed label pairs, not general semantic understanding."
}123version https://git-lfs.github.com/spec/v1oid sha256:398bd187e89da637d3e4284de3b8c616e6406dfa88618a62eade20eb9b414b01size 92208123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222{
"created_at": "2026-11-25T17:32:29+0500",
"experiment_id": "microlm-structured-semantics-1795609949",
"project_id": "07-MicroLM",
"model_architecture": "random-initialized mean-pooled character semantic classifier with category/subcategory/response-shape heads",
"parameter_count": 22832,
"random_seed": 20261125,
"dataset_path": "E:\\HuggingFace Portfolio Development\\07-MicroLM\\experiments\\structured\\structured_semantics.npz",
"dataset_manifest": "E:\\HuggingFace Portfolio Development\\07-MicroLM\\experiments\\structured\\structured_instruction_data_manifest.json",
"dataset_fingerprint": "0cb19ef9191b7e26accc85f2cbb9604468488b6e0c61914036f953e925f23379",
"training_samples": 261,
"validation_samples": 66,
"training_steps": 270,
"epochs": 30,
"training_duration_seconds": 2.522987100001046,
"cpu_configuration": {
"python": "3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]",
"platform": "Windows-11-10.0.22631-SP0",
"torch": "2.7.1+cpu",
"torch_threads": 2,
"torch_interop_threads": 1,
"omp": "2",
"mkl": "2",
"openblas": "2"
},
"resource_after": {
"pid": 7224,
"cpu_count": 4,
"free_disk_bytes": 190099193856,
"memory_total_bytes": 8459083776,
"memory_available_bytes": 2553135104,
"memory_percent": 69.8
},
"initial_parameter_hash": "c07c28ba557b00f2ce80cbcd8118b9170127684a03bd28d0aaaf9cad4a3019ce",
"final_parameter_hash": "a161a8f5679fc3395dbc9fa301fd405811138449cb2eaad3d7a76b75b7223962",
"checkpoint_path": "E:\\HuggingFace Portfolio Development\\07-MicroLM\\checkpoints\\microlm_structured_semantics.pt",
"checkpoint_sha256": "e21b9869c21e0b9137404569940a0fd21e09f4c7482343fcbb2a6f72427c6021",
"loss_history": [
{
"epoch": 1,
"category": 1.5755709542168512,
"subcategory": 2.7212373150719538,
"shape": 1.289902687072754
},
{
"epoch": 2,
"category": 1.5707872841093276,
"subcategory": 2.6604162057240806,
"shape": 0.7713275485568576
},
{
"epoch": 3,
"category": 1.7639912631776598,
"subcategory": 2.8945578469170465,
"shape": 0.6837917268276215
},
{
"epoch": 4,
"category": 1.5090852048661973,
"subcategory": 2.6116135120391846,
"shape": 0.6546087695492638
},
{
"epoch": 5,
"category": 1.6559739510218303,
"subcategory": 2.9196150567796497,
"shape": 0.7660661240418752
},
{
"epoch": 6,
"category": 1.6183914343516033,
"subcategory": 2.8126838207244873,
"shape": 0.6556061539385054
},
{
"epoch": 7,
"category": 1.666810115178426,
"subcategory": 2.85990399784512,
"shape": 0.6777275635136498
},
{
"epoch": 8,
"category": 1.63411545753479,
"subcategory": 2.8066883616977267,
"shape": 0.7116946114434136
},
{
"epoch": 9,
"category": 1.4840929905573528,
"subcategory": 2.6291724973254733,
"shape": 0.7036731375588311
},
{
"epoch": 10,
"category": 1.307754808002048,
"subcategory": 2.3736986584133573,
"shape": 0.6525594807333417
},
{
"epoch": 11,
"category": 1.3328481978840299,
"subcategory": 2.4901075628068714,
"shape": 0.6467757291264005
},
{
"epoch": 12,
"category": 1.228523804081811,
"subcategory": 2.445472690794203,
"shape": 0.639786915646659
},
{
"epoch": 13,
"category": 1.1045865482754178,
"subcategory": 2.2641823159323797,
"shape": 0.6049923068947263
},
{
"epoch": 14,
"category": 1.1463988025983174,
"subcategory": 2.2044076124827066,
"shape": 0.6242107252279917
},
{
"epoch": 15,
"category": 0.9875853260358175,
"subcategory": 2.0640588071611194,
"shape": 0.6270013385348849
},
{
"epoch": 16,
"category": 0.8831627633836534,
"subcategory": 1.849298848046197,
"shape": 0.589970178074307
},
{
"epoch": 17,
"category": 0.8005372087160746,
"subcategory": 1.6607982913653057,
"shape": 0.6166501972410414
},
{
"epoch": 18,
"category": 0.6986624267366197,
"subcategory": 1.5286969078911676,
"shape": 0.5784488717714945
},
{
"epoch": 19,
"category": 0.8649311165014902,
"subcategory": 1.7018776734670003,
"shape": 0.590764946407742
},
{
"epoch": 20,
"category": 0.7162091268433465,
"subcategory": 1.6295803520414565,
"shape": 0.5786904046932856
},
{
"epoch": 21,
"category": 0.6961483707030615,
"subcategory": 1.4940087265438504,
"shape": 0.6284483042028215
},
{
"epoch": 22,
"category": 0.7434483236736722,
"subcategory": 1.5075671540366278,
"shape": 0.6250970330503252
},
{
"epoch": 23,
"category": 0.6759242349200778,
"subcategory": 1.386982672744327,
"shape": 0.5757536855008867
},
{
"epoch": 24,
"category": 0.6126375165250566,
"subcategory": 1.2024913363986545,
"shape": 0.6393938064575195
},
{
"epoch": 25,
"category": 0.6226787078711722,
"subcategory": 1.2709604965315924,
"shape": 0.5676668650574155
},
{
"epoch": 26,
"category": 0.7890955093834136,
"subcategory": 1.3330248991648357,
"shape": 0.6821747124195099
},
{
"epoch": 27,
"category": 0.7156598700417413,
"subcategory": 1.338976310359107,
"shape": 0.6124653584427304
},
{
"epoch": 28,
"category": 0.573256741795275,
"subcategory": 1.2890794277191162,
"shape": 0.5712455411752065
},
{
"epoch": 29,
"category": 0.4997074355681737,
"subcategory": 1.2298186487621732,
"shape": 0.697247326374054
},
{
"epoch": 30,
"category": 0.4367860621876187,
"subcategory": 0.9853386084238688,
"shape": 0.5761487914456261
}
],
"experiment_status": "PASS",
"data_disclosure": "Apache-2.0 instruction records; category/subcategory use source metadata where available and response_shape is a documented derived rule."
}README.mdAdded+11
config.jsonAdded+12
data_manifest.jsonAdded+55
evaluation.jsonAdded+175
model.safetensorsAdded+3
training_manifest.jsonAdded+222