How to use from
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 "Questionmarkboy/frankenstein-2.0" \
    --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": "Questionmarkboy/frankenstein-2.0",
		"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 "Questionmarkboy/frankenstein-2.0" \
        --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": "Questionmarkboy/frankenstein-2.0",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

🧟 Frankenstein 2.0

A custom AI assistant stitched together from three Mistral-7B models, then fine-tuned β€” built entirely on Kaggle.

🧬 What Is This?

Frankenstein 2.0 is a merged model combining the strengths of three open-source models, then fine-tuned with QLoRA on coding + general instruction data.

Component Contribution
Zephyr-7B-beta Instruction following + structure
OpenHermes-2.5 Warmth + conversational tone
Dolphin-2.6-dpo Obedience + helpfulness

πŸŽ“ Training Details

  • Base: Merge of 3Γ— Mistral-7B variants
  • Fine-tuning: QLoRA (4-bit NF4)
  • LoRA: rank 16, alpha 32
  • Data: 3000 general + 3000 coding examples
  • Hardware: 2Γ— NVIDIA Tesla T4 (Kaggle)

πŸ’‘ Capabilities

βœ… Python coding & debugging
βœ… Explaining complex topics simply
βœ… Step-by-step reasoning (with <think> tags)
βœ… Document Q&A (RAG-ready)
βœ… Tool use (web search, calculator)

πŸš€ How To Use

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model = AutoModelForCausalLM.from_pretrained(
    "Questionmarkboy/frankenstein-2.0",
    torch_dtype=torch.float16,
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Questionmarkboy/frankenstein-2.0")

messages = [{"role": "user", "content": "Explain blockchain to a 10-year-old"}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True,
    return_tensors="pt").to(model.device)
output = model.generate(inputs, max_new_tokens=200)
print(tokenizer.decode(output[0], skip_special_tokens=True))

⚠️ Limitations

  • 7B model β€” may struggle with very long code generation (e.g. full HTML apps)
  • Knowledge limited to training data
  • Best for English tasks

πŸ™ Credits

πŸ“œ License

Apache 2.0 (inherited from Mistral base). Please credit the original base models when using this.


It's alive! 🧟⚑

Downloads last month
22
Safetensors
Model size
7B params
Tensor type
F16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ 1 Ask for provider support

Model tree for Questionmarkboy/frankenstein-2.0

Adapter
(417)
this model
Adapters
2 models