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 erfanzar/LinguaMatic-1B-GGUF:
# Run inference directly in the terminal:
llama cli -hf erfanzar/LinguaMatic-1B-GGUF:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf erfanzar/LinguaMatic-1B-GGUF:
# Run inference directly in the terminal:
llama cli -hf erfanzar/LinguaMatic-1B-GGUF:
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 erfanzar/LinguaMatic-1B-GGUF:
# Run inference directly in the terminal:
./llama-cli -hf erfanzar/LinguaMatic-1B-GGUF:
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 erfanzar/LinguaMatic-1B-GGUF:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf erfanzar/LinguaMatic-1B-GGUF:
Use Docker
docker model run hf.co/erfanzar/LinguaMatic-1B-GGUF:
Quick Links

LinguaMatic

LinguaMatic is an advanced AI model designed to handle a wide range of Natural Language Processing (NLP) tasks. With its powerful capabilities, LinguaMatic can assist with tasks such as text classification, sentiment analysis, language translation, question answering, and much more.

EasyDel

The model is finetuned Using a custom version of UltraChat on TPU-v4 POD using EasyDel

Prompting Method

LinguaMatic utilizes the OC prompting method to generate responses. This method, named after the friendly and intelligent llama, enhances the model's ability to engage in meaningful conversations. The prompt_model function provided below demonstrates how the llama2 prompting method is implemented:

def prompt_model(
        message: str,
        chat_history: Optional[List[str] | List[List[str]]] = None,
        system_prompt: Optional[str] = None
):
    if chat_history is None:
        chat_history = []
    system = f"<|system|>\n{system_prompt}</s>" if system_prompt is not None else ""
    ua = ""
    for user_input, response in chat_history:
        ua += f"<|user|>\n{user_input}</s>\n" + f"<|assistant|>\n{response}</s>\n"
    return system + ua + f"<|user|>\n{message}</s>\n<|assistant|>\n"

The prompt_model function takes a message as input, along with the chat_history and system_prompt. It generates a formatted text that includes the system prompt, user inputs, and the current message. This approach allows LinguaMatic to maintain context and provide more coherent and context-aware responses.

Contributing

We welcome contributions to enhance LinguaMatic's capabilities and improve its performance. If you encounter any issues or have suggestions for improvement, please feel free to submit a pull request or open an issue on EasyDel GitHub repository.

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

2-bit

3-bit

4-bit

5-bit

6-bit

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

Dataset used to train erfanzar/LinguaMatic-1B-GGUF

Collection including erfanzar/LinguaMatic-1B-GGUF