nsthorat-lilac commited on
Commit
e6da971
·
1 Parent(s): 039f0f1

Upload folder using huggingface_hub

Browse files
Files changed (28) hide show
  1. Dockerfile +40 -0
  2. README.md +0 -10
  3. data/.cache/lilac/concept/100712716653593140239/aliens/gte-small.pkl +0 -0
  4. data/.cache/lilac/concept/100712716653593140239/alienz/gte-small.pkl +0 -0
  5. data/.cache/lilac/concept/100712716653593140239/asdf/gte-small.pkl +0 -0
  6. data/.cache/lilac/concept/100712716653593140239/private_aliens/gte-small.pkl +0 -0
  7. data/.cache/lilac/concept/lilac/legal-termination/gte-small.pkl +0 -0
  8. data/.cache/lilac/concept/lilac/negative-sentiment/gte-small.pkl +0 -0
  9. data/.cache/lilac/concept/lilac/non-english/gte-base.pkl +0 -0
  10. data/.cache/lilac/concept/lilac/non-english/gte-small.pkl +0 -0
  11. data/.cache/lilac/concept/lilac/positive-sentiment/gte-small.pkl +0 -0
  12. data/.cache/lilac/concept/lilac/profanity/gte-base.pkl +0 -3
  13. data/.cache/lilac/concept/lilac/profanity/gte-small.pkl +0 -3
  14. data/.cache/lilac/concept/lilac/prompt-injections/gte-small.pkl +0 -0
  15. data/.cache/lilac/concept/lilac/prompt-reveal/gte-small.pkl +0 -0
  16. data/.cache/lilac/concept/lilac/question/cohere.pkl +0 -3
  17. data/.cache/lilac/concept/lilac/question/gte-base.pkl +0 -3
  18. data/.cache/lilac/concept/lilac/question/gte-small.pkl +0 -0
  19. data/.cache/lilac/concept/lilac/question/openai.pkl +0 -3
  20. data/.cache/lilac/concept/lilac/question/palm.pkl +0 -3
  21. data/.cache/lilac/concept/lilac/question/sbert.pkl +0 -0
  22. data/.cache/lilac/concept/lilac/source-code/gte-base.pkl +0 -0
  23. data/.cache/lilac/concept/lilac/source-code/gte-small.pkl +0 -0
  24. data/.cache/lilac/concept/lilac/toxicity/gte-small.pkl +0 -3
  25. data/.cache/lilac/concept/local/aliens/gte-small.pkl +0 -0
  26. data/lilac.yml +0 -3
  27. dist/README.md +0 -2
  28. dist/lilac-0.1.3-py3-none-any.whl +0 -3
Dockerfile ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NOTE: When we upgrade to 3.11 we can use a slimmer docker image which comes with gcc.
2
+ FROM python:3.9-bullseye
3
+
4
+ # Allow statements and log messages to immediately appear in the Knative logs
5
+ ENV PYTHONUNBUFFERED True
6
+
7
+ # See: https://huggingface.co/docs/hub/spaces-sdks-docker#permissions
8
+ RUN useradd -m -u 1000 user
9
+ USER user
10
+ ENV HOME=/home/user \
11
+ PATH=/home/user/.local/bin:$PATH
12
+
13
+ # Set the working directory in the container.
14
+ WORKDIR $HOME/app
15
+
16
+ # Install the dependencies. This will look in ./dist for any wheels that match lilac. If they are
17
+ # not found, it will use the public pip package.
18
+
19
+ # Pip install lilac[all] and dependencies before trying to install the local image. This allows us
20
+ # to get cache hits on dependency installations when using a local wheel. When using the public pip
21
+ # package, the second call will be a no-op.
22
+ RUN python -m pip install lilac[all]
23
+
24
+ # Install from the local wheel inside ./dist. This will be a no-op if the wheel is not found.
25
+ COPY --chown=user /dist ./dist/
26
+ RUN python -m pip install --find-links=dist --upgrade lilac[all]
27
+
28
+ COPY --chown=user .env .
29
+ # Copy the README so we can read the datasets from the HuggingFace config.
30
+ COPY --chown=user README.md .
31
+ # Copy the license just in case.
32
+ COPY --chown=user LICENSE .
33
+
34
+ COPY --chown=user docker_start.sh ./
35
+
36
+ # Make a local data directory for non-persistent storage demos.
37
+ RUN mkdir -p ./data
38
+ RUN chown -R user ./data
39
+
40
+ CMD ["bash", "docker_start.sh"]
README.md DELETED
@@ -1,10 +0,0 @@
1
- ---
2
- title: Lilac
3
- emoji: "\U0001F337"
4
- colorFrom: purple
5
- colorTo: purple
6
- sdk: docker
7
- app_port: 5432
8
- datasets: []
9
-
10
- ---
 
 
 
 
 
 
 
 
 
 
 
data/.cache/lilac/concept/100712716653593140239/aliens/gte-small.pkl DELETED
Binary file (10.8 kB)
 
data/.cache/lilac/concept/100712716653593140239/alienz/gte-small.pkl DELETED
Binary file (21.7 kB)
 
data/.cache/lilac/concept/100712716653593140239/asdf/gte-small.pkl DELETED
Binary file (21.7 kB)
 
data/.cache/lilac/concept/100712716653593140239/private_aliens/gte-small.pkl DELETED
Binary file (21.8 kB)
 
data/.cache/lilac/concept/lilac/legal-termination/gte-small.pkl DELETED
Binary file (60.6 kB)
 
data/.cache/lilac/concept/lilac/negative-sentiment/gte-small.pkl DELETED
Binary file (202 kB)
 
data/.cache/lilac/concept/lilac/non-english/gte-base.pkl DELETED
Binary file (645 kB)
 
data/.cache/lilac/concept/lilac/non-english/gte-small.pkl DELETED
Binary file (330 kB)
 
data/.cache/lilac/concept/lilac/positive-sentiment/gte-small.pkl DELETED
Binary file (180 kB)
 
data/.cache/lilac/concept/lilac/profanity/gte-base.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d4ac21aa8bd428688a64f75221338be8c676d208de61a9eba948300e8aa43af3
3
- size 3301300
 
 
 
 
data/.cache/lilac/concept/lilac/profanity/gte-small.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:89495a1f968ddcb3f76ad46dbe7b6503a7b76afcdac37abbeb15c81d38c2f9d4
3
- size 1672934
 
 
 
 
data/.cache/lilac/concept/lilac/prompt-injections/gte-small.pkl DELETED
Binary file (71.3 kB)
 
data/.cache/lilac/concept/lilac/prompt-reveal/gte-small.pkl DELETED
Binary file (69.6 kB)
 
data/.cache/lilac/concept/lilac/question/cohere.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:9768c28d6ed72e4a1a5819fef4157fb1f30a50f1e165bfcdd87d0fa761146902
3
- size 6254174
 
 
 
 
data/.cache/lilac/concept/lilac/question/gte-base.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d2ae5bf4275be11be99cb2e90c03e35c9d2749efc3b34a2d1db1e9f0c99325d6
3
- size 1194925
 
 
 
 
data/.cache/lilac/concept/lilac/question/gte-small.pkl DELETED
Binary file (611 kB)
 
data/.cache/lilac/concept/lilac/question/openai.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:4a14c6df6924f45391654fe78dee8cf996de3abb8acf8ca0f81a65814572d493
3
- size 2362432
 
 
 
 
data/.cache/lilac/concept/lilac/question/palm.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:cce86748bca57bd328f68b97ee80b4e3343ee4008d8951c5b061b6dd9335df7e
3
- size 1194921
 
 
 
 
data/.cache/lilac/concept/lilac/question/sbert.pkl DELETED
Binary file (611 kB)
 
data/.cache/lilac/concept/lilac/source-code/gte-base.pkl DELETED
Binary file (287 kB)
 
data/.cache/lilac/concept/lilac/source-code/gte-small.pkl DELETED
Binary file (147 kB)
 
data/.cache/lilac/concept/lilac/toxicity/gte-small.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b6a074a3ac60cc9bfb82c4bf19d0e8c8d3837cb2b68b97efe8960c16675477f1
3
- size 1886420
 
 
 
 
data/.cache/lilac/concept/local/aliens/gte-small.pkl DELETED
Binary file (28.4 kB)
 
data/lilac.yml DELETED
@@ -1,3 +0,0 @@
1
- datasets: []
2
- signals: []
3
- concept_model_cache_embeddings: []
 
 
 
 
dist/README.md DELETED
@@ -1,2 +0,0 @@
1
- This directory is used for locally built whl files.
2
- We write a README.md to ensure an empty folder is uploaded when there is no whl.
 
 
 
dist/lilac-0.1.3-py3-none-any.whl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:48b4a4c67d13852516c6d570a371dd3edd8ba153d27c5df533237956edae435d
3
- size 1171367