Text Generation
Transformers
Safetensors
PEFT
English
mathematics
conjectures
theorem-proving
reasoning
qlora
lora
formal-math
lean
research
conversational
Instructions to use NorthernTribe-Research/math-conjecture-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NorthernTribe-Research/math-conjecture-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NorthernTribe-Research/math-conjecture-model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("NorthernTribe-Research/math-conjecture-model", dtype="auto") - PEFT
How to use NorthernTribe-Research/math-conjecture-model with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use NorthernTribe-Research/math-conjecture-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NorthernTribe-Research/math-conjecture-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NorthernTribe-Research/math-conjecture-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/NorthernTribe-Research/math-conjecture-model
- SGLang
How to use NorthernTribe-Research/math-conjecture-model with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "NorthernTribe-Research/math-conjecture-model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NorthernTribe-Research/math-conjecture-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "NorthernTribe-Research/math-conjecture-model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NorthernTribe-Research/math-conjecture-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use NorthernTribe-Research/math-conjecture-model with Docker Model Runner:
docker model run hf.co/NorthernTribe-Research/math-conjecture-model
Upload initialized from-scratch smoke bootstrap artifacts (tokenizer + random-init checkpoint)
Browse files- scratch/bootstrap_smoke_2026-03-23/checkpoints/config.json +35 -0
- scratch/bootstrap_smoke_2026-03-23/checkpoints/generation_config.json +10 -0
- scratch/bootstrap_smoke_2026-03-23/checkpoints/model.safetensors +3 -0
- scratch/bootstrap_smoke_2026-03-23/checkpoints/resolved_training_config.json +73 -0
- scratch/bootstrap_smoke_2026-03-23/checkpoints/tokenizer.json +0 -0
- scratch/bootstrap_smoke_2026-03-23/checkpoints/tokenizer_config.json +14 -0
- scratch/bootstrap_smoke_2026-03-23/scratch_init_summary.json +13 -0
- scratch/bootstrap_smoke_2026-03-23/tokenizer/tokenizer.json +0 -0
- scratch/bootstrap_smoke_2026-03-23/tokenizer/tokenizer_config.json +14 -0
scratch/bootstrap_smoke_2026-03-23/checkpoints/config.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_function": "gelu_new",
|
| 3 |
+
"add_cross_attention": false,
|
| 4 |
+
"architectures": [
|
| 5 |
+
"GPT2LMHeadModel"
|
| 6 |
+
],
|
| 7 |
+
"attn_pdrop": 0.1,
|
| 8 |
+
"bos_token_id": 2,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"embd_pdrop": 0.1,
|
| 11 |
+
"eos_token_id": 3,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"layer_norm_epsilon": 1e-05,
|
| 14 |
+
"model_type": "gpt2",
|
| 15 |
+
"n_ctx": 1024,
|
| 16 |
+
"n_embd": 256,
|
| 17 |
+
"n_head": 4,
|
| 18 |
+
"n_inner": null,
|
| 19 |
+
"n_layer": 4,
|
| 20 |
+
"n_positions": 1024,
|
| 21 |
+
"pad_token_id": 0,
|
| 22 |
+
"reorder_and_upcast_attn": false,
|
| 23 |
+
"resid_pdrop": 0.1,
|
| 24 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 25 |
+
"scale_attn_weights": true,
|
| 26 |
+
"summary_activation": null,
|
| 27 |
+
"summary_first_dropout": 0.1,
|
| 28 |
+
"summary_proj_to_labels": true,
|
| 29 |
+
"summary_type": "cls_index",
|
| 30 |
+
"summary_use_proj": true,
|
| 31 |
+
"tie_word_embeddings": true,
|
| 32 |
+
"transformers_version": "5.2.0",
|
| 33 |
+
"use_cache": false,
|
| 34 |
+
"vocab_size": 12000
|
| 35 |
+
}
|
scratch/bootstrap_smoke_2026-03-23/checkpoints/generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 2,
|
| 4 |
+
"eos_token_id": 3,
|
| 5 |
+
"output_attentions": false,
|
| 6 |
+
"output_hidden_states": false,
|
| 7 |
+
"pad_token_id": 0,
|
| 8 |
+
"transformers_version": "5.2.0",
|
| 9 |
+
"use_cache": true
|
| 10 |
+
}
|
scratch/bootstrap_smoke_2026-03-23/checkpoints/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8bc28abb0fd0db578b527ed1858fb19521b290d27080ae284bb44fa527fd23c0
|
| 3 |
+
size 25979888
|
scratch/bootstrap_smoke_2026-03-23/checkpoints/resolved_training_config.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"global": {
|
| 3 |
+
"output_root": "model_development/runs/math-conjecture-scratch-smoke",
|
| 4 |
+
"seed": 17
|
| 5 |
+
},
|
| 6 |
+
"tokenizer": {
|
| 7 |
+
"tokenizer_dir": "model_development/runs/math-conjecture-scratch-smoke/tokenizer",
|
| 8 |
+
"vocab_size": 12000,
|
| 9 |
+
"min_frequency": 2,
|
| 10 |
+
"max_train_rows": 8000,
|
| 11 |
+
"special_tokens": [
|
| 12 |
+
"<pad>",
|
| 13 |
+
"<unk>",
|
| 14 |
+
"<s>",
|
| 15 |
+
"</s>",
|
| 16 |
+
"<|system|>",
|
| 17 |
+
"<|user|>",
|
| 18 |
+
"<|assistant|>"
|
| 19 |
+
]
|
| 20 |
+
},
|
| 21 |
+
"model": {
|
| 22 |
+
"n_layer": 4,
|
| 23 |
+
"n_head": 4,
|
| 24 |
+
"n_embd": 256,
|
| 25 |
+
"n_positions": 1024,
|
| 26 |
+
"use_bf16": false,
|
| 27 |
+
"resid_pdrop": 0.1,
|
| 28 |
+
"embd_pdrop": 0.1,
|
| 29 |
+
"attn_pdrop": 0.1,
|
| 30 |
+
"initializer_range": 0.02
|
| 31 |
+
},
|
| 32 |
+
"data": {
|
| 33 |
+
"train_file": "data/releases/v1/train.parquet",
|
| 34 |
+
"validation_file": "data/releases/v1/validation.parquet",
|
| 35 |
+
"prompt_field": "prompt",
|
| 36 |
+
"target_field": "target",
|
| 37 |
+
"final_answer_field": "final_answer",
|
| 38 |
+
"proof_field": "proof_formal",
|
| 39 |
+
"max_seq_length": 1024,
|
| 40 |
+
"max_train_samples": 5000,
|
| 41 |
+
"max_eval_samples": 500,
|
| 42 |
+
"system_prompt": "You are NorthernTribe Research's math-conjecture solver.\n"
|
| 43 |
+
},
|
| 44 |
+
"training": {
|
| 45 |
+
"output_dir": "model_development/runs/math-conjecture-scratch-smoke/checkpoints",
|
| 46 |
+
"num_train_epochs": 1,
|
| 47 |
+
"max_steps": 20,
|
| 48 |
+
"per_device_train_batch_size": 1,
|
| 49 |
+
"per_device_eval_batch_size": 1,
|
| 50 |
+
"gradient_accumulation_steps": 4,
|
| 51 |
+
"learning_rate": 0.0003,
|
| 52 |
+
"weight_decay": 0.05,
|
| 53 |
+
"warmup_ratio": 0.02,
|
| 54 |
+
"lr_scheduler_type": "cosine",
|
| 55 |
+
"max_grad_norm": 1.0,
|
| 56 |
+
"gradient_checkpointing": false,
|
| 57 |
+
"logging_steps": 5,
|
| 58 |
+
"save_steps": 10,
|
| 59 |
+
"eval_steps": 10,
|
| 60 |
+
"save_total_limit": 2,
|
| 61 |
+
"dataloader_num_workers": 0,
|
| 62 |
+
"seed": 17
|
| 63 |
+
},
|
| 64 |
+
"hub": {
|
| 65 |
+
"push_to_hub": false,
|
| 66 |
+
"repo_id": "NorthernTribe-Research/math-conjecture-model",
|
| 67 |
+
"private": false,
|
| 68 |
+
"commit_message": "Upload scratch-smoke math-conjecture solver artifacts."
|
| 69 |
+
},
|
| 70 |
+
"credentials": {
|
| 71 |
+
"path": "huggingface-api-key.json"
|
| 72 |
+
}
|
| 73 |
+
}
|
scratch/bootstrap_smoke_2026-03-23/checkpoints/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
scratch/bootstrap_smoke_2026-03-23/checkpoints/tokenizer_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<s>",
|
| 4 |
+
"eos_token": "</s>",
|
| 5 |
+
"extra_special_tokens": [
|
| 6 |
+
"<|system|>",
|
| 7 |
+
"<|user|>",
|
| 8 |
+
"<|assistant|>"
|
| 9 |
+
],
|
| 10 |
+
"model_max_length": 1024,
|
| 11 |
+
"pad_token": "<pad>",
|
| 12 |
+
"tokenizer_class": "TokenizersBackend",
|
| 13 |
+
"unk_token": "<unk>"
|
| 14 |
+
}
|
scratch/bootstrap_smoke_2026-03-23/scratch_init_summary.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"mode": "init_only",
|
| 3 |
+
"output_dir": "model_development/runs/math-conjecture-scratch-smoke/checkpoints",
|
| 4 |
+
"tokenizer_dir": "/home/ntr/Documents/huggingface/datasets/maths-conjuncture-solutions/model_development/runs/math-conjecture-scratch-smoke/tokenizer",
|
| 5 |
+
"rows_train": 5000,
|
| 6 |
+
"rows_validation": 500,
|
| 7 |
+
"max_seq_length": 1024,
|
| 8 |
+
"model": {
|
| 9 |
+
"total_parameters": 6493696,
|
| 10 |
+
"trainable_parameters": 6493696
|
| 11 |
+
},
|
| 12 |
+
"config_path": "model_development/configs/math_conjecture_scratch_smoke.yaml"
|
| 13 |
+
}
|
scratch/bootstrap_smoke_2026-03-23/tokenizer/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
scratch/bootstrap_smoke_2026-03-23/tokenizer/tokenizer_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<s>",
|
| 4 |
+
"eos_token": "</s>",
|
| 5 |
+
"extra_special_tokens": [
|
| 6 |
+
"<|system|>",
|
| 7 |
+
"<|user|>",
|
| 8 |
+
"<|assistant|>"
|
| 9 |
+
],
|
| 10 |
+
"model_max_length": 1024,
|
| 11 |
+
"pad_token": "<pad>",
|
| 12 |
+
"tokenizer_class": "TokenizersBackend",
|
| 13 |
+
"unk_token": "<unk>"
|
| 14 |
+
}
|