Qwen2.5-1.5B-Instruct-CoT-Reflection
4
1
2 languages
license:apache-2.0
by
mosama
Language Model
OTHER
1.5B params
New
4 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
4GB+ RAM
Mobile
Laptop
Server
Quick Summary
This model has been finetuned from the Qwen2.
Device Compatibility
Mobile
4-6GB RAM
Laptop
16GB RAM
Server
GPU
Minimum Recommended
2GB+ RAM
Code Examples
How to use?pythontransformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Qwen/Qwen2.5-1.5B-Instruct"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
user_instruction = """You are given a query below. Please read it carefully and approach the solution in a step-by-step manner.
Query:
{query}
Your task is to provide a detailed, logical, and structured solution to the query following the format outlined below:
\How to use?pythontransformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Qwen/Qwen2.5-1.5B-Instruct"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
user_instruction = """You are given a query below. Please read it carefully and approach the solution in a step-by-step manner.
Query:
{query}
Your task is to provide a detailed, logical, and structured solution to the query following the format outlined below:
\How to use?pythontransformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Qwen/Qwen2.5-1.5B-Instruct"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
user_instruction = """You are given a query below. Please read it carefully and approach the solution in a step-by-step manner.
Query:
{query}
Your task is to provide a detailed, logical, and structured solution to the query following the format outlined below:
\How to use?pythontransformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Qwen/Qwen2.5-1.5B-Instruct"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
user_instruction = """You are given a query below. Please read it carefully and approach the solution in a step-by-step manner.
Query:
{query}
Your task is to provide a detailed, logical, and structured solution to the query following the format outlined below:
\How to use?pythontransformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Qwen/Qwen2.5-1.5B-Instruct"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
user_instruction = """You are given a query below. Please read it carefully and approach the solution in a step-by-step manner.
Query:
{query}
Your task is to provide a detailed, logical, and structured solution to the query following the format outlined below:
\How to use?pythontransformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Qwen/Qwen2.5-1.5B-Instruct"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
user_instruction = """You are given a query below. Please read it carefully and approach the solution in a step-by-step manner.
Query:
{query}
Your task is to provide a detailed, logical, and structured solution to the query following the format outlined below:
\Deploy This Model
Production-ready deployment in minutes
Together.ai
Instant API access to this model
Production-ready inference API. Start free, scale to millions.
Try Free APIReplicate
One-click model deployment
Run models in the cloud with simple API. No DevOps required.
Deploy NowDisclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.