Image-Text-to-Text
Transformers
Safetensors
English
gemma3
text-generation-inference
unsloth
CoT
conversational
Instructions to use TitleOS/MindGem27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TitleOS/MindGem27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="TitleOS/MindGem27B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("TitleOS/MindGem27B") model = AutoModelForMultimodalLM.from_pretrained("TitleOS/MindGem27B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TitleOS/MindGem27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TitleOS/MindGem27B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TitleOS/MindGem27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/TitleOS/MindGem27B
- SGLang
How to use TitleOS/MindGem27B 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 "TitleOS/MindGem27B" \ --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": "TitleOS/MindGem27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "TitleOS/MindGem27B" \ --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": "TitleOS/MindGem27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Unsloth Studio
How to use TitleOS/MindGem27B with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for TitleOS/MindGem27B to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for TitleOS/MindGem27B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for TitleOS/MindGem27B to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="TitleOS/MindGem27B", max_seq_length=2048, ) - Docker Model Runner
How to use TitleOS/MindGem27B with Docker Model Runner:
docker model run hf.co/TitleOS/MindGem27B
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,38 +24,45 @@ datasets:
|
|
| 24 |
### Inference:
|
| 25 |
```
|
| 26 |
--- Prompt ---
|
| 27 |
-
What are the most
|
|
|
|
| 28 |
--- Generated Response ---
|
| 29 |
<reasoning>
|
| 30 |
-
We need to answer: "What are the most
|
| 31 |
-
|
| 32 |
-
We should also discuss the relative effectiveness of different strategies, e.g., cost competitiveness, scalability, environmental impact, social acceptance.
|
| 33 |
-
|
| 34 |
-
We could talk about the "most effective" in terms of energy transition: renewable energy sources like solar, wind, hydro, geothermal, biomass, etc., energy storage, grid modernization, demand response, etc.
|
| 35 |
|
| 36 |
-
We
|
| 37 |
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
-
We
|
| 41 |
|
| 42 |
-
We
|
| 43 |
|
| 44 |
-
We
|
| 45 |
|
| 46 |
-
We
|
| 47 |
|
| 48 |
-
|
| 49 |
|
| 50 |
-
We
|
| 51 |
|
| 52 |
-
We
|
| 53 |
|
| 54 |
-
We
|
| 55 |
|
| 56 |
-
We
|
| 57 |
|
| 58 |
-
|
| 59 |
```
|
| 60 |
|
| 61 |
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|
|
|
|
| 24 |
### Inference:
|
| 25 |
```
|
| 26 |
--- Prompt ---
|
| 27 |
+
What are the most accepted candiates for the unfying theory in physics?
|
| 28 |
+
|
| 29 |
--- Generated Response ---
|
| 30 |
<reasoning>
|
| 31 |
+
We need to answer the question: "What are the most accepted candidates for the unifying theory in physics?" The user likely wants a list of candidate theories, perhaps with commentary on their status and acceptance among physicists.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
+
We need to provide a thorough answer, covering:
|
| 34 |
|
| 35 |
+
- Standard Model: the current successful theory, but not a unification of gravity.
|
| 36 |
+
- Grand Unified Theories (GUTs): SU(5), SO(10), E6, etc.
|
| 37 |
+
- Superstring theory (including M-theory, bosonic string theory, heterotic string theory, Type IIA, IIB).
|
| 38 |
+
- Loop Quantum Gravity (LQG).
|
| 39 |
+
- Causal Dynamical Triangulations (CDT).
|
| 40 |
+
- Asymptotically Safe Quantum Gravity.
|
| 41 |
+
- Twistor theory.
|
| 42 |
+
- Noncommutative Geometry.
|
| 43 |
+
- Emergent spacetime ideas (e.g., matrix models, holographic principle, AdS/CFT).
|
| 44 |
+
- Causal Set theory.
|
| 45 |
+
- Other approaches: causal fermion theory, emergent gravity, shape dynamics, etc.
|
| 46 |
|
| 47 |
+
We should also mention "unifying theories" that try to combine quantum mechanics and general relativity, but also potentially unify fundamental forces.
|
| 48 |
|
| 49 |
+
We should discuss the current status: which are most accepted (e.g., string theory has the most research activity and a large community, but no experimental evidence; LQG has a strong community but faces challenges; GUTs have predictions but not observed; asymptotic safety is promising; emergent gravity ideas have some support).
|
| 50 |
|
| 51 |
+
We might also mention "no currently accepted candidate" and the open challenges.
|
| 52 |
|
| 53 |
+
We should give a balanced overview, perhaps with a table summarizing the main features, pros, cons, and community size.
|
| 54 |
|
| 55 |
+
Also discuss experimental constraints: LHC, neutrino masses, proton decay, cosmology (CMB, inflation, dark matter), gravitational wave observations, etc.
|
| 56 |
|
| 57 |
+
We should mention the "unifying" aspect: unification of forces (electromagnetism, weak, strong, gravity), unification of quantum mechanics and general relativity, unification of spacetime and matter.
|
| 58 |
|
| 59 |
+
We could also mention "Theory of Everything" candidates: string theory, M-theory, loop quantum gravity, asymptotic safety, causal dynamical triangulations, emergent gravity, and perhaps "nothing yet" as the most accepted.
|
| 60 |
|
| 61 |
+
We should also discuss "most accepted" as in the most active research, most cited, most funding, most plausible according to theoretical community.
|
| 62 |
|
| 63 |
+
We can categorize:
|
| 64 |
|
| 65 |
+
- Quantum gravity approaches: string theory, loop quantum gravity, causal sets, asymptotic safety,
|
| 66 |
```
|
| 67 |
|
| 68 |
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|