PEFT
Safetensors
GGUF
German
trl
sft
Generated from Trainer
conversational

Run this model with HF Jobs

Run LSX-UniWue/LLaMmlein_1B_chat_selected on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/LSX-UniWue/LLaMmlein_1B_chat_selected. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/LSX-UniWue/LLaMmlein_1B_chat_selected on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf LSX-UniWue/LLaMmlein_1B_chat_selected
# Run inference directly in the terminal:
llama cli -hf LSX-UniWue/LLaMmlein_1B_chat_selected
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf LSX-UniWue/LLaMmlein_1B_chat_selected
# Run inference directly in the terminal:
llama cli -hf LSX-UniWue/LLaMmlein_1B_chat_selected
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf LSX-UniWue/LLaMmlein_1B_chat_selected
# Run inference directly in the terminal:
./build/bin/llama cli -hf LSX-UniWue/LLaMmlein_1B_chat_selected
Use Docker
docker model run hf.co/LSX-UniWue/LLaMmlein_1B_chat_selected
Quick Links

LLäMmlein 1B Chat

image/png

While the base versions of our LLäMmlein are quite good, our chat versions are research demonstrations and are not ready to be used in settings where close instruction following is necessary. Please check the paper for more details.

This is a chat adapter for the German Tinyllama 1B language model. Find more details on our page and our preprint! We also merged the adapter and converted it to GGUF here.

Run it

import torch
from peft import PeftConfig, PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

torch.manual_seed(42)

# script config
base_model_name = "LSX-UniWue/LLaMmlein_1B_prerelease"
chat_adapter_name = "LSX-UniWue/LLaMmlein_1B_chat_selected"
device = "cuda"  # or mps

# chat history
messages = [
    {
        "role": "user",
        "content": """Na wie geht's?""",
    },
]

# load model
config = PeftConfig.from_pretrained(chat_adapter_name)
base_model = model = AutoModelForCausalLM.from_pretrained(
    base_model_name,
    torch_dtype=torch.bfloat16,
    device_map=device,
)
base_model.resize_token_embeddings(32064)
model = PeftModel.from_pretrained(base_model, chat_adapter_name)
tokenizer = AutoTokenizer.from_pretrained(chat_adapter_name)

# encode message in "ChatML" format
chat = tokenizer.apply_chat_template(
    messages,
    return_tensors="pt",
    add_generation_prompt=True,
).to(device)

# generate response
print(
    tokenizer.decode(
        model.generate(
            chat,
            max_new_tokens=300,
            pad_token_id=tokenizer.pad_token_id,
            eos_token_id=tokenizer.eos_token_id,
        )[0],
        skip_special_tokens=False,
    )
)

Data Take Down

Downloads last month
73
GGUF
Model size
1B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for LSX-UniWue/LLaMmlein_1B_chat_selected

Adapter
(3)
this model

Datasets used to train LSX-UniWue/LLaMmlein_1B_chat_selected

Spaces using LSX-UniWue/LLaMmlein_1B_chat_selected 2

Collection including LSX-UniWue/LLaMmlein_1B_chat_selected

Paper for LSX-UniWue/LLaMmlein_1B_chat_selected