Downloads · 30 days
75
17% of all-time downloads
abhishek-0122/Shivik-1.7B-Phase1-General
Shivik-1.7B-Phase1-General is a text generation model from abhishek-0122. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Shivik Phase 1 is a 1.7B parameter language model trained for reasoning and chain-of-thought (CoT) generation.
Downloads · 30 days
75
17% of all-time downloads
All-time downloads
429
Public
Parameters
1.7B
3.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.4 GB · 99%
From the Hugging Face model README
Shivik Phase 1 is a 1.7B parameter language model trained for reasoning and chain-of-thought (CoT) generation.
<think> tags: ✅ Yes<answer> tags: ✅ Yes<step> tags (can be added with better prompting)from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model
model_id = "abhishek-0122/Shivik-1.7B-Phase1-General"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
)
# Format prompt
prompt = '''<|begin_of_text|><|start_header_id|>system<|end_header_id|>
You are Shivik, an advanced reasoning AI. Show your thinking using <think> tags. Break down your reasoning into steps. Provide answers in <answer> tags.
<|eot_id|><|start_header_id|>user<|end_header_id|>
What is 15 × 24?
<|eot_id|><|start_header_id|>assistant<|end_header_id|>
'''
# Generate
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=1024,
temperature=0.7,
top_p=0.9,
do_sample=True,
)
response = tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)
print(response)
<think>
15 × 24 can be broken down step by step.
First, let me use the distributive property:
15 × 24 = 15 × (20 + 4)
= (15 × 20) + (15 × 4)
= 300 + 60
= 360
</think>
<answer>
360
</answer>
generation_config = {
"max_new_tokens": 1024, # Adjust based on task complexity
"temperature": 0.7, # Lower (0.3-0.5) for math, higher (0.7-0.9) for creative
"top_p": 0.9,
"repetition_penalty": 1.2, # Prevents repetition
"do_sample": True,
}
<think> and <answer> tags, but missing <step> tags✅ Good for:
❌ Not recommended for:
This is part of the Shivik model series:
<step> and <verify> tags@model{shivik-phase1-2025,
title={Shivik 1.7B Phase 1: General Knowledge Foundation},
author={Your Name},
year={2025},
url={https://huggingface.co/abhishek-0122/Shivik-1.7B-Phase1-General}
}
Apache 2.0
Note: This is an experimental model from an active research project. Phase 1 works but is not production-ready. A distilled version with proper CoT format is in development.