# Llama.cpp compatability

**URL:** <https://itensor.discourse.group/t/llama-cpp-compatability/1786>\
**Category:** ITensor C++ Questions\
**Created:** [June 4, 2024, 7:33pm UTC](https://itensor.discourse.group/t/llama-cpp-compatability/1786 "2024-06-04T19:33:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinkawchak](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/kevinkawchak/32/486_2.png) [@kevinkawchak](https://itensor.discourse.group/u/kevinkawchak)\
**Post date:** [June 4, 2024, 7:33pm UTC](https://itensor.discourse.group/t/llama-cpp-compatability/1786/1 "2024-06-04T19:33:52Z")

</div>

How compatible is ITensor C++ with llama.cpp?

---

<div class="post-metadata">

**Author:** ![mtfishman](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/mtfishman/32/11_2.png) [@mtfishman](https://itensor.discourse.group/u/mtfishman)\
**Post date:** [June 4, 2024, 7:35pm UTC](https://itensor.discourse.group/t/llama-cpp-compatability/1786/2 "2024-06-04T19:35:33Z")

</div>

What is llama.cpp?

---

<div class="post-metadata">

**Author:** ![miles](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/miles/32/6_2.png) [@miles](https://itensor.discourse.group/u/miles)\
**Post date:** [June 17, 2024, 12:55am UTC](https://itensor.discourse.group/t/llama-cpp-compatability/1786/3 "2024-06-17T00:55:46Z")

</div>

Hi Kevin,  
At a broader level, I would say that ITensor C++ is not designed specifically to be compatible with other libraries. That doesn’t mean it is not compatible, just that we did not have other libraries in mind when designing the interface. The good news is that if one needs general sorts of tensor operations like tensor contractions, it is easy enough to convert things like dense arrays into ITensors and back so that one can glue ITensor together with other libraries easily enough.

With the Julia version, we’ve made and are making even more of a deliberate effort to make it easy to interconvert ITensors to other types like basic Julia arrays. Also Julia inherently makes it easier to mix together different libraries both in terms of language features and the community coming around certain common interfaces like array interfaces which hasn’t happened as much in C++.

Hope that helps.

Miles
