Text Generation
Transformers
Safetensors
GGUF
gemma3_text
turkish
türkiye
english
ai
lamapi
gemma3
next
next-x1
efficient
open-source
1b
huggingface
large-language-model
llm
causal
transformer
artificial-intelligence
machine-learning
ai-research
natural-language-processing
nlp
finetuned
lightweight
creative
summarization
question-answering
chat-model
generative-ai
optimized-model
unsloth
trl
sft
chemistry
biology
finance
legal
music
art
code
climate
medical
agent
text-generation-inference
conversational
Instructions to use thelamapi/next-1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thelamapi/next-1b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="thelamapi/next-1b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("thelamapi/next-1b") model = AutoModelForCausalLM.from_pretrained("thelamapi/next-1b", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use thelamapi/next-1b with 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 thelamapi/next-1b:BF16 # Run inference directly in the terminal: llama cli -hf thelamapi/next-1b:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf thelamapi/next-1b:BF16 # Run inference directly in the terminal: llama cli -hf thelamapi/next-1b:BF16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf thelamapi/next-1b:BF16 # Run inference directly in the terminal: ./llama-cli -hf thelamapi/next-1b:BF16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf thelamapi/next-1b:BF16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf thelamapi/next-1b:BF16
Use Docker
docker model run hf.co/thelamapi/next-1b:BF16
- Llama new
- LM Studio
- Jan
- vLLM
How to use thelamapi/next-1b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "thelamapi/next-1b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "thelamapi/next-1b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/thelamapi/next-1b:BF16
- SGLang
How to use thelamapi/next-1b 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 "thelamapi/next-1b" \ --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": "thelamapi/next-1b", "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 "thelamapi/next-1b" \ --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": "thelamapi/next-1b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use thelamapi/next-1b with Ollama:
ollama run hf.co/thelamapi/next-1b:BF16
- Unsloth Desktop
- Docker Model Runner
How to use thelamapi/next-1b with Docker Model Runner:
docker model run hf.co/thelamapi/next-1b:BF16
- Lemonade
How to use thelamapi/next-1b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull thelamapi/next-1b:BF16
Run and chat with the model
lemonade run user.next-1b-BF16
List all available models
lemonade list
- Atomic Chat
Commit History
-
Update README.md
Verified signaturecdab7fa
-
Update README.md
Verified signature8ec22db
-
Rename assets/banner5basp.png to assets/banner.png
Verified signaturebfd9106 -
Upload banner5basp.png
Verified signature4a54720 -
Rename assets/banner.png to assets/ban5ner.png
Verified signature6f976b8
-
Update README.md
Verified signature9ddafb5 -
Update README.md
Verified signature97db43e
-
Update README.md
Verified signatureb5ee260
-
Update README.md
Verified signatureb7487f9 -
Upload next-1b-bf16.gguf with huggingface_hub
Verified signature67ec4d7 -
Upload next-1b-tq2_0.gguf with huggingface_hub
Verified signature6726d2b -
Upload next-1b-tq1_0.gguf with huggingface_hub
Verified signaturec2853e8 -
Upload next-1b-q8_0.gguf with huggingface_hub
Verified signature352e14a -
Upload next-1b-f16.gguf with huggingface_hub
Verified signatureb3a3a3e -
Upload next-1b-f32.gguf with huggingface_hub
Verified signatureef70478 -
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster92b3655 -
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster00718c5 -
Delete added_tokens.json
Verified signatureb2438cc -
Delete chat_template.jinja
Verified signature4a0a0c7 -
Delete config.json
Verified signatured48a83b -
Delete generation_config.json
Verified signature07f707d -
Delete model.safetensors
Verified signaturee99027f -
Delete next-1b-f16.gguf
Verified signature9b632e7 -
Delete next-1b-f32.gguf
Verified signature2fe1092 -
Delete next-1b-q8_0.gguf
Verified signaturea21181c -
Delete special_tokens_map.json
Verified signature20fefa2 -
Delete tokenizer.json
Verified signature3869d7a -
Delete tokenizer.model
Verified signaturedb05462 -
Delete tokenizer_config.json
Verified signature91b9a70 -
Upload next-1b-q8_0.gguf with huggingface_hub
Verified signatured1f7c11 -
Upload next-1b-f16.gguf with huggingface_hub
Verified signaturecff2495 -
Upload next-1b-f32.gguf with huggingface_hub
Verified signaturec1c5a3c -
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster3c93bb8 -
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster2d6aa3b -
Delete added_tokens.json
Verified signatured5b8ca8 -
Delete chat_template.jinja
Verified signature9e795c9 -
Delete config.json
Verified signature3f8635e -
Delete generation_config.json
Verified signature0a3283f -
Delete model.safetensors
Verified signaturedfdd059 -
Delete next-1b-f16.gguf
Verified signaturec887771 -
Delete next-1b-f32.gguf
Verified signature7926c6f -
Delete next-1b-q8_0.gguf
Verified signature6630587 -
Delete special_tokens_map.json
Verified signature72f303b -
Delete tokenizer.json
Verified signature8bce13a -
Delete tokenizer.model
Verified signaturee1f3a30 -
Delete tokenizer_config.json
Verified signaturea9729ea
-
Update README.md
Verified signaturef3e2e93 -
Update README.md
Verified signaturec92b536
-
Update README.md
Verified signatureecc6dbf -
Update metadata (tokenizer.chat_template)
Verified signatureUpdated metadata: * **tokenizer.chat_template**: ```django {{ bos_token }} {%- if messages[0]['role'] == 'system' -%} {%- if messages[0]['content'] is string -%} {%- set first_user_prefix = messages[0]['content'] + ' ' -%} {%- else -%} {%- set first_user_prefix = messages[0]['content'][0]['text'] + ' ' -%} {%- endif -%} {%- set loop_messages = messages[1:] -%} {%- else -%} {%- set first_user_prefix = "" -%} {%- set loop_messages = messages -%} {%- endif -%} {%- for message in loop_messages -%} {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) -%} {{ raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") }} {%- endif -%} {%- if (message['role'] == 'assistant') -%} {%- set role = "model" -%} {%- else -%} {%- set role = message['role'] -%} {%- endif -%} {{ '<start_of_turn>' + role + ' ' + (first_user_prefix if loop.first else "") }} {%- if message['conte…7c64975