Instructions to use NovaAI6868/BaiHu-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use NovaAI6868/BaiHu-gguf 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 NovaAI6868/BaiHu-gguf:F16 # Run inference directly in the terminal: llama cli -hf NovaAI6868/BaiHu-gguf:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf NovaAI6868/BaiHu-gguf:F16 # Run inference directly in the terminal: llama cli -hf NovaAI6868/BaiHu-gguf:F16
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 NovaAI6868/BaiHu-gguf:F16 # Run inference directly in the terminal: ./llama-cli -hf NovaAI6868/BaiHu-gguf:F16
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 NovaAI6868/BaiHu-gguf:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf NovaAI6868/BaiHu-gguf:F16
Use Docker
docker model run hf.co/NovaAI6868/BaiHu-gguf:F16
- LM Studio
- Jan
- vLLM
How to use NovaAI6868/BaiHu-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NovaAI6868/BaiHu-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NovaAI6868/BaiHu-gguf", "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/NovaAI6868/BaiHu-gguf:F16
- Ollama
How to use NovaAI6868/BaiHu-gguf with Ollama:
ollama run hf.co/NovaAI6868/BaiHu-gguf:F16
- Unsloth Studio
How to use NovaAI6868/BaiHu-gguf 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 NovaAI6868/BaiHu-gguf 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 NovaAI6868/BaiHu-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for NovaAI6868/BaiHu-gguf to start chatting
- Pi
How to use NovaAI6868/BaiHu-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf NovaAI6868/BaiHu-gguf:F16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "NovaAI6868/BaiHu-gguf:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use NovaAI6868/BaiHu-gguf with Docker Model Runner:
docker model run hf.co/NovaAI6868/BaiHu-gguf:F16
- Lemonade
How to use NovaAI6868/BaiHu-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull NovaAI6868/BaiHu-gguf:F16
Run and chat with the model
lemonade run user.BaiHu-gguf-F16
List all available models
lemonade list
- Hermes Agent
How to use NovaAI6868/BaiHu-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf NovaAI6868/BaiHu-gguf:F16
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 NovaAI6868/BaiHu-gguf:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use NovaAI6868/BaiHu-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf NovaAI6868/BaiHu-gguf:F16
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 "NovaAI6868/BaiHu-gguf:F16" \ --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"
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,4 +1,127 @@
|
|
| 1 |
# NovaAI-0.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
---
|
| 3 |
license: mit
|
| 4 |
---
|
|
|
|
| 1 |
# NovaAI-0.1
|
| 2 |
+
|
| 3 |
+
# Chinese QA GPT Model
|
| 4 |
+
|
| 5 |
+
## Model Description
|
| 6 |
+
|
| 7 |
+
This is a Chinese language GPT-like transformer model trained on question-answering pairs. The model is designed to generate helpful, conversational responses to user questions in Chinese. It uses a decoder-only architecture similar to GPT with causal self-attention and is optimized for Chinese language understanding and generation.
|
| 8 |
+
|
| 9 |
+
## Model Details
|
| 10 |
+
|
| 11 |
+
- **Architecture**: Decoder-only Transformer (GPT-like)
|
| 12 |
+
- **Parameters**: ~124M parameters (configurable)
|
| 13 |
+
- **Vocabulary Size**: 32,000 (SentencePiece BPE)
|
| 14 |
+
- **Context Length**: 1,024 tokens
|
| 15 |
+
- **Language**: Chinese (Simplified)
|
| 16 |
+
- **Task**: Question Answering / Conversational AI
|
| 17 |
+
|
| 18 |
+
## Model Architecture
|
| 19 |
+
|
| 20 |
+
The model consists of:
|
| 21 |
+
- **12 Transformer layers** with causal self-attention
|
| 22 |
+
- **12 attention heads** per layer
|
| 23 |
+
- **768-dimensional embeddings**
|
| 24 |
+
- **SentencePiece tokenizer** with BPE encoding for Chinese text
|
| 25 |
+
- **GELU activation functions**
|
| 26 |
+
- **Layer normalization** and residual connections
|
| 27 |
+
|
| 28 |
+
## Training Data
|
| 29 |
+
|
| 30 |
+
The model was trained on a diverse dataset of Chinese question-answering pairs covering various topics including:
|
| 31 |
+
- Gaming and entertainment
|
| 32 |
+
- Technology and gadgets
|
| 33 |
+
- Health and lifestyle
|
| 34 |
+
- Travel and local recommendations
|
| 35 |
+
- Relationships and social advice
|
| 36 |
+
- General knowledge questions
|
| 37 |
+
|
| 38 |
+
## Training Configuration
|
| 39 |
+
|
| 40 |
+
- **Training Method**: Causal Language Modeling (next token prediction)
|
| 41 |
+
- **Batch Size**: 4
|
| 42 |
+
- **Learning Rate**: 3e-4 (AdamW optimizer)
|
| 43 |
+
- **Epochs**: 3
|
| 44 |
+
- **Dropout**: 0.1
|
| 45 |
+
- **Gradient Clipping**: 1.0
|
| 46 |
+
|
| 47 |
+
## Usage
|
| 48 |
+
|
| 49 |
+
### Installation
|
| 50 |
+
```bash
|
| 51 |
+
pip install torch sentencepiece tqdm
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
### Training
|
| 55 |
+
```bash
|
| 56 |
+
python train.py --data_path all.jsonl --spm_model spm.model
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
### Inference
|
| 60 |
+
```bash
|
| 61 |
+
python infer.py --checkpoint checkpoints/checkpoint_epoch3.pt --spm_model spm.model --prompt "你的问题"
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
### Python API
|
| 65 |
+
```python
|
| 66 |
+
import torch
|
| 67 |
+
import sentencepiece as spm
|
| 68 |
+
from train import GPT, GPTConfig
|
| 69 |
+
|
| 70 |
+
# Load model
|
| 71 |
+
sp = spm.SentencePieceProcessor()
|
| 72 |
+
sp.Load('spm.model')
|
| 73 |
+
|
| 74 |
+
checkpoint = torch.load('checkpoints/checkpoint_epoch3.pt')
|
| 75 |
+
config = GPTConfig(
|
| 76 |
+
vocab_size=32000,
|
| 77 |
+
n_layer=12,
|
| 78 |
+
n_head=12,
|
| 79 |
+
n_embd=768,
|
| 80 |
+
block_size=1024
|
| 81 |
+
)
|
| 82 |
+
model = GPT(config)
|
| 83 |
+
model.load_state_dict(checkpoint['model_state'])
|
| 84 |
+
|
| 85 |
+
# Generate response
|
| 86 |
+
prompt = "你好,请介绍一下你自己"
|
| 87 |
+
ids = sp.EncodeAsIds('<s>' + prompt + '<sep>')
|
| 88 |
+
# ... generation logic
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
## Model Performance
|
| 92 |
+
|
| 93 |
+
The model demonstrates strong performance on:
|
| 94 |
+
- Chinese language understanding
|
| 95 |
+
- Contextual question answering
|
| 96 |
+
- Conversational response generation
|
| 97 |
+
- Maintaining coherence over multi-turn conversations
|
| 98 |
+
|
| 99 |
+
## Limitations
|
| 100 |
+
|
| 101 |
+
- **Language**: Only supports Chinese (Simplified)
|
| 102 |
+
- **Context Window**: Limited to 1,024 tokens
|
| 103 |
+
- **Knowledge Cutoff**: Based on training data timeframe
|
| 104 |
+
- **Factual Accuracy**: May occasionally produce inaccurate information
|
| 105 |
+
- **Bias**: May reflect biases present in training data
|
| 106 |
+
|
| 107 |
+
## Ethical Considerations
|
| 108 |
+
|
| 109 |
+
This model is designed for educational and research purposes. Users should be aware that:
|
| 110 |
+
- The model may generate responses that seem authoritative but could be factually incorrect
|
| 111 |
+
- The model's training data may contain biases
|
| 112 |
+
- Generated content should be fact-checked before use in critical applications
|
| 113 |
+
|
| 114 |
+
## Technical Requirements
|
| 115 |
+
|
| 116 |
+
- **Python**: 3.6+
|
| 117 |
+
- **PyTorch**: Latest stable version
|
| 118 |
+
- **CUDA**: Optional, for GPU acceleration
|
| 119 |
+
- **Memory**: ~2GB GPU memory for inference
|
| 120 |
+
|
| 121 |
+
## License
|
| 122 |
+
|
| 123 |
+
This model is released under the MIT License.
|
| 124 |
+
|
| 125 |
---
|
| 126 |
license: mit
|
| 127 |
---
|