Text Generation
Transformers
Safetensors
English
Hindi
llama
mini
conversational
text-generation-inference
Instructions to use kd13/Type-o1-mini-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kd13/Type-o1-mini-instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kd13/Type-o1-mini-instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("kd13/Type-o1-mini-instruct") model = AutoModelForCausalLM.from_pretrained("kd13/Type-o1-mini-instruct", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kd13/Type-o1-mini-instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kd13/Type-o1-mini-instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kd13/Type-o1-mini-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kd13/Type-o1-mini-instruct
- SGLang
How to use kd13/Type-o1-mini-instruct 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 "kd13/Type-o1-mini-instruct" \ --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": "kd13/Type-o1-mini-instruct", "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 "kd13/Type-o1-mini-instruct" \ --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": "kd13/Type-o1-mini-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use kd13/Type-o1-mini-instruct with Docker Model Runner:
docker model run hf.co/kd13/Type-o1-mini-instruct
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,116 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- hi
|
| 6 |
+
base_model:
|
| 7 |
+
- meta-llama/Llama-3.2-1B
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
library_name: transformers
|
| 10 |
+
tags:
|
| 11 |
+
- llama
|
| 12 |
+
- mini
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
# Type-o1-mini-instruct
|
| 16 |
+
|
| 17 |
+
A compact general-purpose instruct model designed for everyday assistant use across a wide range of domains — from science and math to writing, coding, language tasks, and tool-style web search workflows.
|
| 18 |
+
|
| 19 |
+
The model is intended for lightweight assistant use cases where users need clear, well-structured answers, helpful explanations, and practical support across many subject areas.
|
| 20 |
+
|
| 21 |
+
## Capabilities
|
| 22 |
+
|
| 23 |
+
This model can help with:
|
| 24 |
+
|
| 25 |
+
* General chat and multi-turn conversation
|
| 26 |
+
* Biology, chemistry, and physics questions and explanations
|
| 27 |
+
* Mathematics and quantitative reasoning
|
| 28 |
+
* Engineering concepts and explanations
|
| 29 |
+
* Health and medical information (general, non-clinical)
|
| 30 |
+
* Python coding assistance and code explanation
|
| 31 |
+
* Creative writing (stories, poetry, writing prompts)
|
| 32 |
+
* Content generation (marketing copy, social media captions, emails)
|
| 33 |
+
* English grammar correction and rewriting
|
| 34 |
+
* Advanced NLP tasks:
|
| 35 |
+
* Fill-mask
|
| 36 |
+
* Table question answering
|
| 37 |
+
* Context-based question answering (SQuAD style)
|
| 38 |
+
* Summarization (dialogue, news, and scientific papers)
|
| 39 |
+
* English ↔ Hindi translation
|
| 40 |
+
* School and coursework-level question answering
|
| 41 |
+
* Web search tool-call style conversations
|
| 42 |
+
|
| 43 |
+
## Chat Format
|
| 44 |
+
|
| 45 |
+
The model follows a Harmony-style chat structure.
|
| 46 |
+
|
| 47 |
+
Supported interaction flow:
|
| 48 |
+
|
| 49 |
+
```text
|
| 50 |
+
system -> developer -> user -> tool call -> tool result -> final response
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
For normal chat use, you can use a standard chat-template style prompt.
|
| 54 |
+
|
| 55 |
+
## Web Search Tool-Call Style
|
| 56 |
+
|
| 57 |
+
The model can be used in tool-calling style conversations where the assistant decides when a search is needed, emits a tool call, receives a tool result, and then writes the final answer.
|
| 58 |
+
|
| 59 |
+
Example structure:
|
| 60 |
+
|
| 61 |
+
```text
|
| 62 |
+
system: You are a helpful assistant with access to web search.
|
| 63 |
+
user: Find the latest information about a topic.
|
| 64 |
+
assistant tool call: web_search(...)
|
| 65 |
+
tool result: ...
|
| 66 |
+
assistant final: Answer using the search result.
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
Actual tool execution depends on your inference framework or application wrapper.
|
| 70 |
+
|
| 71 |
+
## Recommended Use Cases
|
| 72 |
+
|
| 73 |
+
This model is best suited for:
|
| 74 |
+
|
| 75 |
+
* General-purpose lightweight assistants
|
| 76 |
+
* Study and homework helpers across science subjects
|
| 77 |
+
* Writing and content generation helpers
|
| 78 |
+
* Grammar and language correction tools
|
| 79 |
+
* English ↔ Hindi translation helpers
|
| 80 |
+
* Summarization and document Q&A tools
|
| 81 |
+
* Beginner Python learning assistants
|
| 82 |
+
* Tool-call research experiments
|
| 83 |
+
* Chatbots that need broad domain coverage in a small model
|
| 84 |
+
|
| 85 |
+
## Limitations
|
| 86 |
+
|
| 87 |
+
This model is not recommended for:
|
| 88 |
+
|
| 89 |
+
* Production-critical software generation without review
|
| 90 |
+
* Non-Python coding tasks such as C++, Java, Rust, Go, or JavaScript
|
| 91 |
+
* Security-sensitive code generation
|
| 92 |
+
* Medical, legal, or financial decision-making
|
| 93 |
+
* Advanced research-level science or mathematics
|
| 94 |
+
* Long multi-file software engineering tasks
|
| 95 |
+
* Tasks requiring very long context
|
| 96 |
+
* High-stakes factual lookup without verification
|
| 97 |
+
|
| 98 |
+
The model may sometimes:
|
| 99 |
+
|
| 100 |
+
* Produce incorrect facts or reasoning
|
| 101 |
+
* Miss edge cases
|
| 102 |
+
* Over-explain simple questions
|
| 103 |
+
* Generate code that needs testing
|
| 104 |
+
* Struggle with very long context
|
| 105 |
+
* Use tool-call format inconsistently depending on the prompt
|
| 106 |
+
* Give uneven quality across its many supported domains
|
| 107 |
+
|
| 108 |
+
Always verify important outputs and test generated code before using it.
|
| 109 |
+
|
| 110 |
+
## License
|
| 111 |
+
|
| 112 |
+
Please check the model repository license before commercial or production use.
|
| 113 |
+
|
| 114 |
+
## Disclaimer
|
| 115 |
+
|
| 116 |
+
This model is an experimental small general-purpose assistant. It should be used as a helpful assistant, not as a guaranteed source of truth. For important tasks, verify outputs with tests, documentation, and human review.
|