Text Generation
Transformers
TensorBoard
Safetensors
GGUF
qwen2
Generated from Trainer
qwen
GGUF
worldmodel
worldbuilding
text-generation-inference
conversational
Instructions to use archit11/qwen_worldmodel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use archit11/qwen_worldmodel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="archit11/qwen_worldmodel") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("archit11/qwen_worldmodel") model = AutoModelForCausalLM.from_pretrained("archit11/qwen_worldmodel") - llama-cpp-python
How to use archit11/qwen_worldmodel with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="archit11/qwen_worldmodel", filename="qwen_worldmodel0.1.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use archit11/qwen_worldmodel 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 archit11/qwen_worldmodel # Run inference directly in the terminal: llama cli -hf archit11/qwen_worldmodel
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf archit11/qwen_worldmodel # Run inference directly in the terminal: llama cli -hf archit11/qwen_worldmodel
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 archit11/qwen_worldmodel # Run inference directly in the terminal: ./llama-cli -hf archit11/qwen_worldmodel
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 archit11/qwen_worldmodel # Run inference directly in the terminal: ./build/bin/llama-cli -hf archit11/qwen_worldmodel
Use Docker
docker model run hf.co/archit11/qwen_worldmodel
- LM Studio
- Jan
- vLLM
How to use archit11/qwen_worldmodel with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "archit11/qwen_worldmodel" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "archit11/qwen_worldmodel", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/archit11/qwen_worldmodel
- SGLang
How to use archit11/qwen_worldmodel 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 "archit11/qwen_worldmodel" \ --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": "archit11/qwen_worldmodel", "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 "archit11/qwen_worldmodel" \ --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": "archit11/qwen_worldmodel", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use archit11/qwen_worldmodel with Ollama:
ollama run hf.co/archit11/qwen_worldmodel
- Unsloth Studio
How to use archit11/qwen_worldmodel 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 archit11/qwen_worldmodel 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 archit11/qwen_worldmodel to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for archit11/qwen_worldmodel to start chatting
- Pi
How to use archit11/qwen_worldmodel with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf archit11/qwen_worldmodel
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "archit11/qwen_worldmodel" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use archit11/qwen_worldmodel with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf archit11/qwen_worldmodel
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default archit11/qwen_worldmodel
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use archit11/qwen_worldmodel with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf archit11/qwen_worldmodel
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "archit11/qwen_worldmodel" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use archit11/qwen_worldmodel with Docker Model Runner:
docker model run hf.co/archit11/qwen_worldmodel
- Lemonade
How to use archit11/qwen_worldmodel with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull archit11/qwen_worldmodel
Run and chat with the model
lemonade run user.qwen_worldmodel-{{QUANT_TAG}}List all available models
lemonade list
archit11/qwen-finetuned-model
Browse files- README.md +76 -0
- config.json +29 -0
- generation_config.json +6 -0
- model.safetensors +3 -0
- runs/Sep28_10-42-26_e89ab5377562/events.out.tfevents.1727520148.e89ab5377562.24.0 +3 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: Qwen/Qwen2.5-0.5B
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
model-index:
|
| 8 |
+
- name: capybara_finetuned_results3
|
| 9 |
+
results: []
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 13 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 14 |
+
|
| 15 |
+
# capybara_finetuned_results3
|
| 16 |
+
|
| 17 |
+
This model is a fine-tuned version of [Qwen/Qwen2.5-0.5B](https://huggingface.co/Qwen/Qwen2.5-0.5B) on an unknown dataset.
|
| 18 |
+
It achieves the following results on the evaluation set:
|
| 19 |
+
- Loss: 5.6542
|
| 20 |
+
|
| 21 |
+
## Model description
|
| 22 |
+
|
| 23 |
+
More information needed
|
| 24 |
+
|
| 25 |
+
## Intended uses & limitations
|
| 26 |
+
|
| 27 |
+
More information needed
|
| 28 |
+
|
| 29 |
+
## Training and evaluation data
|
| 30 |
+
|
| 31 |
+
More information needed
|
| 32 |
+
|
| 33 |
+
## Training procedure
|
| 34 |
+
|
| 35 |
+
### Training hyperparameters
|
| 36 |
+
|
| 37 |
+
The following hyperparameters were used during training:
|
| 38 |
+
- learning_rate: 0.0002
|
| 39 |
+
- train_batch_size: 1
|
| 40 |
+
- eval_batch_size: 8
|
| 41 |
+
- seed: 42
|
| 42 |
+
- gradient_accumulation_steps: 4
|
| 43 |
+
- total_train_batch_size: 4
|
| 44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 45 |
+
- lr_scheduler_type: cosine
|
| 46 |
+
- lr_scheduler_warmup_steps: 5
|
| 47 |
+
- training_steps: 800
|
| 48 |
+
|
| 49 |
+
### Training results
|
| 50 |
+
|
| 51 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
| 52 |
+
|:-------------:|:------:|:----:|:---------------:|
|
| 53 |
+
| 15.5311 | 0.0230 | 50 | 14.5422 |
|
| 54 |
+
| 8.7477 | 0.0460 | 100 | 9.2952 |
|
| 55 |
+
| 7.3554 | 0.0690 | 150 | 7.1992 |
|
| 56 |
+
| 6.828 | 0.0920 | 200 | 6.7258 |
|
| 57 |
+
| 6.4694 | 0.1150 | 250 | 6.3597 |
|
| 58 |
+
| 6.3401 | 0.1381 | 300 | 6.1703 |
|
| 59 |
+
| 6.1256 | 0.1611 | 350 | 6.0395 |
|
| 60 |
+
| 6.0372 | 0.1841 | 400 | 5.9271 |
|
| 61 |
+
| 6.0221 | 0.2071 | 450 | 5.8464 |
|
| 62 |
+
| 5.8783 | 0.2301 | 500 | 5.7810 |
|
| 63 |
+
| 5.8339 | 0.2531 | 550 | 5.7335 |
|
| 64 |
+
| 5.8546 | 0.2761 | 600 | 5.6904 |
|
| 65 |
+
| 5.9169 | 0.2991 | 650 | 5.6690 |
|
| 66 |
+
| 5.7959 | 0.3221 | 700 | 5.6565 |
|
| 67 |
+
| 5.7271 | 0.3451 | 750 | 5.6543 |
|
| 68 |
+
| 5.8734 | 0.3682 | 800 | 5.6542 |
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
### Framework versions
|
| 72 |
+
|
| 73 |
+
- Transformers 4.44.2
|
| 74 |
+
- Pytorch 2.4.0
|
| 75 |
+
- Datasets 3.0.0
|
| 76 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "Qwen/Qwen2.5-0.5B",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Qwen2ForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 151643,
|
| 8 |
+
"eos_token_id": 151643,
|
| 9 |
+
"hidden_act": "silu",
|
| 10 |
+
"hidden_size": 896,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"intermediate_size": 4864,
|
| 13 |
+
"max_position_embeddings": 32768,
|
| 14 |
+
"max_window_layers": 24,
|
| 15 |
+
"model_type": "qwen2",
|
| 16 |
+
"num_attention_heads": 14,
|
| 17 |
+
"num_hidden_layers": 24,
|
| 18 |
+
"num_key_value_heads": 2,
|
| 19 |
+
"rms_norm_eps": 1e-06,
|
| 20 |
+
"rope_theta": 1000000.0,
|
| 21 |
+
"sliding_window": null,
|
| 22 |
+
"tie_word_embeddings": true,
|
| 23 |
+
"torch_dtype": "bfloat16",
|
| 24 |
+
"transformers_version": "4.44.2",
|
| 25 |
+
"use_cache": true,
|
| 26 |
+
"use_mrope": false,
|
| 27 |
+
"use_sliding_window": false,
|
| 28 |
+
"vocab_size": 151936
|
| 29 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"eos_token_id": 151643,
|
| 4 |
+
"max_new_tokens": 2048,
|
| 5 |
+
"transformers_version": "4.44.2"
|
| 6 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:24d9d0f1531f43af8979d1d24860ef3374e535a9fdb11230eb6474798d0688f0
|
| 3 |
+
size 988097824
|
runs/Sep28_10-42-26_e89ab5377562/events.out.tfevents.1727520148.e89ab5377562.24.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d7183631174031eb5a6aae670f0eef9c3b7528709244e3be9401a72be545f5a0
|
| 3 |
+
size 26539
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b3dba80a50c68f5de6a6a7612a2e3b8af21b8914eebcadc5f14179d73add5c0
|
| 3 |
+
size 5176
|