I’m on my way to deploy a GGUF model on Huggingface space (free hardware CPU and RAM).Currently I’m using a GGUF model because I need to run it using CPU. Later, I have plans to run AWQ models on GPU. I’m currently thinking about ctransformers or llama-cpp-python. Please suggest me which one should I use as a beginner with a plan of integrating llms with websites in future.

Comparison Aspects

Speed

Computational Power Efficiency

Readability and ease of use

Popularity and availability of educational resources

Extra Questions

If I learn ctransformers, is it gonna help me when I will use the huggingface transformers library to load gpu based models in the future? Which one has more resources to solve problems? which one requires less code to run? consider all these aspects and you must choose one between the two

Do I need to learn llama.cpp or C++ to deploy models using llama-cpp-python library?

I used to run AWQ quantized models in my local machine and there is a huge difference in quality. Same model with same bit precision performs much, much worse in GGUF format compared to AWQ. Is there something wrong? Suggest me some fixes

  • vatsadev@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Also AWQ has entire engines for efficieny, look into aphrodite engine, supposably the fastest for awq

  • vatsadev@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    “Do I need to learn llama.cpp or C++ to deploy models using llama-cpp-python library?” No its pure python

  • randull@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I use both, and they’re pretty interchangeable in my experience. It looks like it’s been 2 months since the last ctransformers update, and llama-cpp has always been a little more popular with more contributors and stars on github.

  • _Lee_B_@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Learn docker compose. Run ollama as one of your docker containers (it’s already available as a docker container). Run your website server as another docker container. Deploy it securely, and you’re done. If/when you want to scale it and make it more enterprisey, upgrade from docker compose to kubernetes.