-
Text Generation with CoT Reasoning:
- Implements Chain-of-Thought (CoT) prompting for logical and step-by-step reasoning tasks.
-
Conversational AI:
- Excels in generating context-aware and coherent responses in multi-turn conversations.
-
Supervised Fine-Tuning (SFT):
- Optimized for open-domain tasks using the O1-OPEN/OpenO1-SFT dataset.
-
Multi-Purpose Functionality:
- Supports a wide range of NLP tasks, including summarization, question answering, and text completion.
-
Scalable Sharded Architecture:
- Model weights are distributed across four shards, ensuring efficient loading for large-scale applications.
-
Chain-of-Thought (CoT) Reasoning:
- Solve complex problems step-by-step with logical reasoning capabilities.
-
Conversational Agents:
- Ideal for chatbots, virtual assistants, and conversational systems.
-
Question Answering:
- Answer open-domain or context-specific questions accurately.
-
Text Completion:
- Generate coherent continuations for incomplete inputs.
-
Creative Writing:
- Support for generating stories, articles, or brainstorming ideas.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_name = "BlackBeenie/Llama-3.1-8B-OpenO1-SFT-v0.2"
4tokenizer = AutoTokenizer.from_pretrained(model_name)
5model = AutoModelForCausalLM.from_pretrained(model_name)
1prompt = """
2Explain the concept of gravity in a simple way suitable for a 10-year-old:
3"""
4inputs = tokenizer(prompt, return_tensors="pt")
5outputs = model.generate(**inputs, max_length=150, temperature=0.7)
6
7response = tokenizer.decode(outputs[0], skip_special_tokens=True)
8print("Model Output:", response)