Views
No views yet
nvidia/Cosmos-Reason2-2B.lm_head, removes the vision tower and projector weights, and saves the result as a standalone Hugging Face Qwen3ForCausalLM checkpoint.nvidia/Cosmos-Reason2-2BQwen3ForCausalLMmodel_type: qwen3model.visual.* and other multimodal componentsmodel.safetensorsqwen3_vl_text. It was converted to a qwen3 CausalLM-compatible config because the tested Transformers environment did not expose qwen3_vl_text through AutoModelForCausalLM.torch 2.12.1+cputransformers 5.12.1safetensors 0.8.0AutoConfig.from_pretrained(...) loads as Qwen3ConfigAutoTokenizer.from_pretrained(...) loads as Qwen2TokenizerAutoModelForCausalLM.from_pretrained(...) loads as Qwen3ForCausalLM(1, 7, 151936)visual, vision, projector, or language_model tensor names remain in the exported checkpoint1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model_id = "sasa2000/cosmos-reason2-2b-text-only"
5
6tokenizer = AutoTokenizer.from_pretrained(model_id)
7model = AutoModelForCausalLM.from_pretrained(
8 model_id,
9 torch_dtype="auto",
10 device_map="auto",
11)
12
13inputs = tokenizer("Explain why objects fall toward Earth.", return_tensors="pt").to(model.device)
14with torch.no_grad():
15 output_ids = model.generate(**inputs, max_new_tokens=128)
16
17print(tokenizer.decode(output_ids[0], skip_special_tokens=True))