Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Apr 2023 20:13:44 +0200
From:      Mario Marietto <marietto2008@gmail.com>
To:        Aryeh Friedman <aryeh.friedman@gmail.com>, freebsd-hackers <freebsd-hackers@freebsd.org>,  Yuri Victorovich <yuri@freebsd.org>, FreeBSD Mailing List <freebsd-questions@freebsd.org>
Cc:        Odhiambo Washington <odhiambo@gmail.com>
Subject:   Re: Installing openAI's GPT-2 Ada AI Language Model
Message-ID:  <CA%2B1FSijtT_270sOcaqwkA4xrf2mTVpff36vDX%2Bobhx3OoKfMKQ@mail.gmail.com>
In-Reply-To: <CAGBxaXnRWwAoPx-kNQUQSNt3Lf4tuOY59j%2BZTyw5n-QJRm-xkw@mail.gmail.com>
References:  <CAGBxaXmhRLk9Lx_ZHeRdoN-K2fRLEhY3cBVtBymmAjd4bBh1OQ@mail.gmail.com> <CA%2B1FSihQ-f4uhiOjYH8Wo=AxFEkAKe3NRDJdopgT50J=_jY4fA@mail.gmail.com> <CAGBxaXnYojzQJqO62hkzUJvD2rzaNp%2Bem38FgCqVSBu%2BmkBi9A@mail.gmail.com> <CA%2B1FSijpiko%2B%2B%2BwJuXo2GVV6sz3yGVi7ig0X3037%2B1zE3n91hg@mail.gmail.com> <CAGBxaX=OcaHEZk3S7jQeYW64A_iRNTmJ%2Bab4U7h_hsrG%2BQqQPg@mail.gmail.com> <ZEEnZjzDCtR_ZG4P@graf.pompo.net> <CAGBxaXmU=Ja9EkoMyxQ0cNxYB4BeiktqQ3P64QcWg%2B=xijTiyQ@mail.gmail.com> <CA%2B1FSii6OOwi%2B%2Bau-_9ViU_SMZ%2BGbESG5H0McVTHQUwmMnOJGQ@mail.gmail.com> <CAGBxaXkhC--ZppimDFabEwPhesjAJmrziNZm753eoyjy1sWzqg@mail.gmail.com> <CA%2B1FSijsSSpCFeKeaOt4gR36BAZ4J8j4QSJRJa-VF-a=J9e2uw@mail.gmail.com> <CAGBxaXnEajP_NKdgDtreavm1Gz5jyLE8-jQBxM9ALX%2BQ9Cpidw@mail.gmail.com> <CA%2B1FSiiyg8An7HwZrJOd=cKh1%2BNC-FMzgaQNfiHP9fkwpgbAEg@mail.gmail.com> <CAGBxaXmnsAQwfeSjGT4K3M2oNvSTpXYfrErRt3UbMvxpCD4htw@mail.gmail.com> <CA%2B1FSiiLEjNTXg5Nj-mxrV6n64gcSa0DXcu=U6a39Dz2fyQahA@mail.gmail.com> <CAGBxaXnxvU7oKNVO8uZwLhFNQzzVSxkAuTUqWNjwJz_eyYDncA@mail.gmail.com> <CAAdA2WP5_OT3Jge37EzS_p65gM59gpQ7%2By3jhQ3RHfAr-v5SLA@mail.gmail.com> <CA%2B1FSihfyo=mJ0JzKNCRbFO4%2B8VLJKVntLB99T7XbLMzkeugQw@mail.gmail.com> <CAAdA2WM7Zm2fFPaR7PPPN%2BM8ptpGTRPzf%2Bj%2BVxJgfr4Wh3QCPw@mail.gmail.com> <CAGBxaX=8q9Tu0CMqhGYpFZ-wh4Q=_z-vGD3BC0JsQ4anPXFO1Q@mail.gmail.com> <CAAdA2WN=8g_Nh0f73CUKjvWQcDT6uB7GjVi4MzK6=X6jOO-CDg@mail.gmail.com> <CAGBxaXntNiw34qH6b8iGry41rvw0DCt5M93ShS41OBwxR-JwHw@mail.gmail.com> <CA%2B1FSijqpRHe3oWrfdTufzVSh6aFUPGQ9GWZ2S=pXQ3xSSTCzQ@mail.gmail.com> <CA%2B1FSij=fVu64p9RQ%2BMf0wNzpXh0Zw8tpix5G8P6AE1NEe1sYw@mail.gmail.com> <CAGBxaXnRWwAoPx-kNQUQSNt3Lf4tuOY59j%2BZTyw5n-QJRm-xkw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000001b5a4f05f9f0bedd
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I don't know. This should be evaluated by you. I'm not involved so much in
the technicalities :

https://github.com/lm-sys/FastChat

Let me understand what the Ada (117M) model is,if you want. I want to
learn.

On Sat, Apr 22, 2023 at 8:10=E2=80=AFPM Aryeh Friedman <aryeh.friedman@gmai=
l.com>
wrote:

> Does GPT-3/3.5 come with a Ada (117M) model?
>
> On Sat, Apr 22, 2023 at 2:09=E2=80=AFPM Mario Marietto <marietto2008@gmai=
l.com>
> wrote:
> >
> > And I'm even more sure that using a linux bhyve VM you can configure
> chatgpt 3.5 / 4 even faster than using the linuxulator.
> >
> > On Sat, Apr 22, 2023 at 8:06=E2=80=AFPM Mario Marietto <marietto2008@gm=
ail.com>
> wrote:
> >>
> >> Why are you insisting on chat gpt 2 when you can have chatgpt 3.5 / 4
> installed on your local FreeBSD machine through the linuxulator ? This wi=
ll
> be my next project.
> >>
> >> On Sat, Apr 22, 2023 at 8:00=E2=80=AFPM Aryeh Friedman <
> aryeh.friedman@gmail.com> wrote:
> >>>
> >>> My next step is to wipe the vm and try again (this time making it
> >>> scripted so I can do repeated test runs and very stuff systematically=
)
> >>>
> >>> On Sat, Apr 22, 2023 at 6:53=E2=80=AFAM Odhiambo Washington <
> odhiambo@gmail.com> wrote:
> >>> >
> >>> > If you find a suitable, working version, please let me know.
> >>> >
> >>> >
> >>> > On Sat, Apr 22, 2023 at 1:05=E2=80=AFPM Aryeh Friedman <
> aryeh.friedman@gmail.com> wrote:
> >>> >>
> >>> >> Seems like 2 steps forward and one backwards I had it kind of
> working
> >>> >> under the wrong version of python going to wipe the machine and tr=
y
> >>> >> again with 3.7 I think I screwed something up.... and according to
> >>> >> what I can ting the no tensorflow.contrib has to deal with version
> of
> >>> >> tensor flow... gpt-2 wants <2.0.0 it appears (preference for 1.15)
> >>> >>
> >>> >> On Sat, Apr 22, 2023 at 5:26=E2=80=AFAM Odhiambo Washington <
> odhiambo@gmail.com> wrote:
> >>> >> >
> >>> >> > @Mario Marietto are you by any chance trying to address the issu=
e
> raised by Aryeh?
> >>> >> >
> >>> >> > ```
> >>> >> > ModuleNotFoundError: No module named 'tensorflow.contrib'
> >>> >> > ```
> >>> >> > The problem is NOT about installing tensorflow, but rather
> getting the correct version that will not lead to the above error.
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> > On Sat, Apr 22, 2023 at 12:19=E2=80=AFPM Mario Marietto <
> marietto2008@gmail.com> wrote:
> >>> >> >>
> >>> >> >> marietto@marietto-nano:~$ python3
> >>> >> >> Python 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] on lin=
ux
> >>> >> >> Type "help", "copyright", "credits" or "license" for more
> information.
> >>> >> >> >>> import tensorflow as tf
> >>> >> >> >>> tf.__version__
> >>> >> >> '2.12.0'
> >>> >> >> >>> print(tf.reduce_sum(tf.random.normal([1000, 1000])))
> >>> >> >> tf.Tensor(51.500687, shape=3D(), dtype=3Dfloat32)
> >>> >> >>
> >>> >> >>
> https://qengineering.eu/install-tensorflow-2.4.0-on-jetson-nano.html
> >>> >> >>
> >>> >> >> On Sat, Apr 22, 2023 at 10:47=E2=80=AFAM Odhiambo Washington <
> odhiambo@gmail.com> wrote:
> >>> >> >>>
> >>> >> >>>
> >>> >> >>>
> >>> >> >>> On Sat, Apr 22, 2023 at 11:20=E2=80=AFAM Aryeh Friedman <
> aryeh.friedman@gmail.com> wrote:
> >>> >> >>>>
> >>> >> >>>> On Fri, Apr 21, 2023 at 8:31=E2=80=AFAM Mario Marietto <
> marietto2008@gmail.com> wrote:
> >>> >> >>>> >
> >>> >> >>>> > If you don't want to use the GPU,the commands should be mor=
e
> or less the following :
> >>> >> >>>> >
> >>> >> >>>> >
> >>> >> >>>> > sudo touch /usr/local/etc/rc.d/ubuntu && chmod +x
> /usr/local/etc/rc.d/ubuntu
> >>> >> >>>> >
> >>> >> >>>> > # Make it have this content:
> >>> >> >>>> >
> >>> >> >>>> > #!/bin/sh
> >>> >> >>>> > #
> >>> >> >>>> > # PROVIDE: ubuntu
> >>> >> >>>> > # REQUIRE: archdep mountlate
> >>> >> >>>> > # KEYWORD: nojail
> >>> >> >>>> > #
> >>> >> >>>> > # This is a modified version of /etc/rc.d/linux
> >>> >> >>>> > # Based on the script by mrclksr:
> >>> >> >>>> > #
> https://github.com/mrclksr/linux-browser-installer/blob/main/rc.d/ubuntu.=
in
> >>> >> >>>> > #
> >>> >> >>>> > . /etc/rc.subr
> >>> >> >>>> >
> >>> >> >>>> > name=3D"ubuntu"
> >>> >> >>>> > desc=3D"Enable Ubuntu chroot, and Linux ABI"
> >>> >> >>>> > rcvar=3D"ubuntu_enable"
> >>> >> >>>> > start_cmd=3D"${name}_start"
> >>> >> >>>> > stop_cmd=3D":"
> >>> >> >>>> >
> >>> >> >>>> > unmounted()
> >>> >> >>>> > {
> >>> >> >>>> >     [ `stat -f "%d" "$1"` =3D=3D `stat -f "%d" "$1/.."` -a =
\
> >>> >> >>>> >       `stat -f "%i" "$1"` !=3D `stat -f "%i" "$1/.."` ]
> >>> >> >>>> > }
> >>> >> >>>> >
> >>> >> >>>> > ubuntu_start()
> >>> >> >>>> > {
> >>> >> >>>> >     local _emul_path _tmpdir
> >>> >> >>>> >
> >>> >> >>>> >     load_kld -e 'linux(aout|elf)' linux
> >>> >> >>>> >     case `sysctl -n hw.machine_arch` in
> >>> >> >>>> >     amd64)
> >>> >> >>>> >         load_kld -e 'linux64elf' linux64
> >>> >> >>>> >         ;;
> >>> >> >>>> >     esac
> >>> >> >>>> >     if [ -x /compat/ubuntu/sbin/ldconfigDisabled ]; then
> >>> >> >>>> >         _tmpdir=3D`mktemp -d -t linux-ldconfig`
> >>> >> >>>> >         /compat/ubuntu/sbin/ldconfig -C
> ${_tmpdir}/ld.so.cache
> >>> >> >>>> >         if ! cmp -s ${_tmpdir}/ld.so.cache
> /compat/ubuntu/etc/ld.so.cache; then
> >>> >> >>>> >             cat ${_tmpdir}/ld.so.cache >
> /compat/ubuntu/etc/ld.so.cache
> >>> >> >>>> >         fi
> >>> >> >>>> >         rm -rf ${_tmpdir}
> >>> >> >>>> >     fi
> >>> >> >>>> >
> >>> >> >>>> >     # Linux uses the pre-pts(4) tty naming scheme.
> >>> >> >>>> >     load_kld pty
> >>> >> >>>> >
> >>> >> >>>> >     # Handle unbranded ELF executables by defaulting to
> ELFOSABI_LINUX.
> >>> >> >>>> >     if [ `sysctl -ni kern.elf64.fallback_brand` -eq "-1" ];
> then
> >>> >> >>>> >         sysctl kern.elf64.fallback_brand=3D3 > /dev/null
> >>> >> >>>> >     fi
> >>> >> >>>> >
> >>> >> >>>> >     if [ `sysctl -ni kern.elf32.fallback_brand` -eq "-1" ];
> then
> >>> >> >>>> >         sysctl kern.elf32.fallback_brand=3D3 > /dev/null
> >>> >> >>>> >     fi
> >>> >> >>>> >     sysctl compat.linux.emul_path=3D/compat/ubuntu
> >>> >> >>>> >
> >>> >> >>>> >     _emul_path=3D"/compat/ubuntu"
> >>> >> >>>> >     unmounted "${_emul_path}/dev" && (mount -o nocover -t
> devfs devfs "${_emul_path}/dev" || exit 1)
> >>> >> >>>> >     unmounted "${_emul_path}/dev/fd" && (mount -o
> nocover,linrdlnk -t fdescfs fdescfs "${_emul_path}/dev/fd" || exit 1)
> >>> >> >>>> >     unmounted "${_emul_path}/dev/shm" && (mount -o
> nocover,mode=3D1777 -t tmpfs tmpfs "${_emul_path}/dev/shm" || exit 1)
> >>> >> >>>> >     unmounted "${_emul_path}/home" && (mount -t nullfs /hom=
e
> "${_emul_path}/home" || exit 1)
> >>> >> >>>> >     unmounted "${_emul_path}/proc" && (mount -o nocover -t
> linprocfs linprocfs "${_emul_path}/proc" || exit 1)
> >>> >> >>>> >     unmounted "${_emul_path}/sys" && (mount -o nocover -t
> linsysfs linsysfs "${_emul_path}/sys" || exit 1)
> >>> >> >>>> >     unmounted "${_emul_path}/tmp" && (mount -t nullfs /tmp
> "${_emul_path}/tmp" || exit 1)
> >>> >> >>>> >     unmounted /dev/fd && (mount -o nocover -t fdescfs
> fdescfs /dev/fd || exit 1)
> >>> >> >>>> >     unmounted /proc && (mount -o nocover -t procfs procfs
> /proc || exit 1)
> >>> >> >>>> >     true
> >>> >> >>>> > }
> >>> >> >>>> >
> >>> >> >>>> > load_rc_config $name
> >>> >> >>>> > run_rc_command "$1"
> >>> >> >>>> >
> >>> >> >>>> > sysrc ubuntu_enable=3DYES
> >>> >> >>>> >
> >>> >> >>>> > # Create necessary mount points for a working Linuxulator:
> >>> >> >>>> > mkdir -p
> {/compat/ubuntu/dev/fd,/compat/ubuntu/dev/shm,/compat/ubuntu/home,/compat=
/ubuntu/tmp,/compat/ubuntu/proc,/compat/ubuntu/sys}
> >>> >> >>>> >
> >>> >> >>>> > # Start Ubuntu service:
> >>> >> >>>> > service ubuntu start
> >>> >> >>>> >
> >>> >> >>>> > # Install needed packages:
> >>> >> >>>> > pkg install debootstrap pulseaudio
> >>> >> >>>> >
> >>> >> >>>> > # Install Ubuntu 20.04 into /compat/ubuntu:
> >>> >> >>>> > debootstrap --arch=3Damd64 --no-check-gpg focal /compat/ubu=
ntu
> >>> >> >>>> >
> >>> >> >>>> > # Restart Ubuntu service to make sure everything is properl=
y
> mounted:
> >>> >> >>>> > service ubuntu restart
> >>> >> >>>> >
> >>> >> >>>> > # Fix broken symlink:
> >>> >> >>>> > cd /compat/ubuntu/lib64/ && rm ./ld-linux-x86-64.so.2 ; ln
> -s ../lib/x86_64-linux-gnu/ld-2.31.so ld-linux-x86-64.so.2
> >>> >> >>>> >
> >>> >> >>>> > # Chroot into your Linux environment:
> >>> >> >>>> > chroot /compat/ubuntu /bin/bash
> >>> >> >>>> >
> >>> >> >>>> > # Set correct timezone inside your chroot:
> >>> >> >>>> > printf "%b\n" "0.0 0 0.0\n0\nUTC" > /etc/adjtime
> >>> >> >>>> > sudo dpkg-reconfigure tzdata # For some reason sudo is
> necessary here, otherwise it fails.
> >>> >> >>>> >
> >>> >> >>>> > # Fix APT package manager:
> >>> >> >>>> > printf "APT::Cache-Start 251658240;" >
> /etc/apt/apt.conf.d/00aptitude
> >>> >> >>>> >
> >>> >> >>>> > # Enable more repositories:
> >>> >> >>>> > printf "deb http://archive.ubuntu.com/ubuntu/ focal main
> restricted universe multiverse" > /etc/apt/sources.list
> >>> >> >>>> >
> >>> >> >>>> > # Install required programs:
> >>> >> >>>> >
> >>> >> >>>> > apt update ; apt install -y apt-transport-https curl
> fonts-symbola gnupg pulseaudio build-essential gcc gfortran
> >>> >> >>>> >
> >>> >> >>>> > # Exit out of chroot
> >>> >> >>>> > exit
> >>> >> >>>> >
> >>> >> >>>> > # Fix x86_64-linux-gnu libraries path between ubuntu and
> freebsd
> >>> >> >>>> > cp -r /compat/ubuntu/usr/lib/x86_64-linux-gnu /lib
> >>> >> >>>> >
> >>> >> >>>> >
> >>> >> >>>> > --> Installing PyTorch and your chatgpt github fork on
> FreeBSD
> >>> >> >>>> >
> >>> >> >>>> >
> >>> >> >>>> > # fetch
> https://gist.githubusercontent.com/shkhln/40ef290463e78fb2b0000c60f4ad797=
e/raw/f640983249607e38af405c95c457ce4afc85c608/uvm_ioctl_override.c
> >>> >> >>>> >
> >>> >> >>>> > # /compat/ubuntu/bin/gcc --sysroot=3D/compat/ubuntu -m64
> -std=3Dc99 -Wall -ldl -fPIC -shared -o dummy-uvm.so uvm_ioctl_override.c
> >>> >> >>>> >
> >>> >> >>>> > # pkg install linux-miniconda-installer
> >>> >> >>>> > # miniconda-installer
> >>> >> >>>> > # bash
> >>> >> >>>> > # source /home/marietto/miniconda3/etc/profile.d/conda.sh
> >>> >> >>>> > # conda activate
> >>> >> >>>> >
> >>> >> >>>> > (base) # conda activate pytorch
> >>> >> >>>> >
> >>> >> >>>> > (pytorch) # conda activate
> >>> >> >>>> >
> >>> >> >>>> > (base) # conda activate
> >>> >> >>>> >
> >>> >> >>>> > (base) # git clone your chatgpt github fork
> >>> >> >>>>
> >>> >> >>>>
> >>> >> >>>> I have done that I think and get:
> >>> >> >>>>
> >>> >> >>>> (base) [babyspock@babyspock ~]$ python
> >>> >> >>>> src/generate_unconditional_samples.py --model_name 117M
> --nsamples 5
> >>> >> >>>> --length 512
> >>> >> >>>> python: can't open file
> >>> >> >>>> '/usr/opt/babySpock/src/generate_unconditional_samples.py':
> [Errno 2]
> >>> >> >>>> No such file or directory
> >>> >> >>>> (base) [babyspock@babyspock ~]$ cd gpt-2/
> >>> >> >>>> (base) [babyspock@babyspock ~/gpt-2]$ python
> >>> >> >>>> src/generate_unconditional_samples.py --model_name 117M
> --nsamples 5
> >>> >> >>>> --length 512
> >>> >> >>>> 2023-04-22 00:17:18.661083: I
> tensorflow/tsl/cuda/cudart_stub.cc:28]
> >>> >> >>>> Could not find cuda drivers on your machine, GPU will not be
> used.
> >>> >> >>>> 2023-04-22 00:17:18.710468: I
> tensorflow/tsl/cuda/cudart_stub.cc:28]
> >>> >> >>>> Could not find cuda drivers on your machine, GPU will not be
> used.
> >>> >> >>>> 2023-04-22 00:17:18.710951: I
> >>> >> >>>> tensorflow/core/platform/cpu_feature_guard.cc:182] This
> TensorFlow
> >>> >> >>>> binary is optimized to use available CPU instructions in
> >>> >> >>>> performance-critical operations.
> >>> >> >>>> To enable the following instructions: AVX2 FMA, in other
> operations,
> >>> >> >>>> rebuild TensorFlow with the appropriate compiler flags.
> >>> >> >>>> 2023-04-22 00:17:19.429409: W
> >>> >> >>>> tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT
> Warning:
> >>> >> >>>> Could not find TensorRT
> >>> >> >>>> Traceback (most recent call last):
> >>> >> >>>>   File
> "/usr/opt/babySpock/gpt-2/src/generate_unconditional_samples.py",
> >>> >> >>>> line 9, in <module>
> >>> >> >>>>     import model, sample, encoder
> >>> >> >>>>   File "/usr/opt/babySpock/gpt-2/src/model.py", line 3, in
> <module>
> >>> >> >>>>     from tensorflow.contrib.training import HParams
> >>> >> >>>> ModuleNotFoundError: No module named 'tensorflow.contrib'
> >>> >> >>>
> >>> >> >>>
> >>> >> >>> Use Python3.7 or earlier.
> >>> >> >>>
> >>> >> >>> --
> >>> >> >>> Best regards,
> >>> >> >>> Odhiambo WASHINGTON,
> >>> >> >>> Nairobi,KE
> >>> >> >>> +254 7 3200 0004/+254 7 2274 3223
> >>> >> >>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=
=AF :-)
> >>> >> >>> [How to ask smart questions:
> http://www.catb.org/~esr/faqs/smart-questions.html]
> >>> >> >>
> >>> >> >>
> >>> >> >>
> >>> >> >> --
> >>> >> >> Mario.
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> > --
> >>> >> > Best regards,
> >>> >> > Odhiambo WASHINGTON,
> >>> >> > Nairobi,KE
> >>> >> > +254 7 3200 0004/+254 7 2274 3223
> >>> >> > "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF=
 :-)
> >>> >> > [How to ask smart questions:
> http://www.catb.org/~esr/faqs/smart-questions.html]
> >>> >>
> >>> >>
> >>> >>
> >>> >> --
> >>> >> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > Best regards,
> >>> > Odhiambo WASHINGTON,
> >>> > Nairobi,KE
> >>> > +254 7 3200 0004/+254 7 2274 3223
> >>> > "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-=
)
> >>> > [How to ask smart questions:
> http://www.catb.org/~esr/faqs/smart-questions.html]
> >>>
> >>>
> >>>
> >>> --
> >>> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
> >>
> >>
> >>
> >> --
> >> Mario.
> >
> >
> >
> > --
> > Mario.
>
>
>
> --
> Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
>


--=20
Mario.

--0000000000001b5a4f05f9f0bedd
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I don&#39;t know. This should be evaluated by you. I&=
#39;m not involved so much in the technicalities : <br></div><div><br></div=
><div><a href=3D"https://github.com/lm-sys/FastChat">https://github.com/lm-=
sys/FastChat</a></div><div><br></div><div>Let me understand what the Ada (1=
17M) model is,if you want. I want to learn.=C2=A0 <br></div></div><br><div =
class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Apr 22,=
 2023 at 8:10=E2=80=AFPM Aryeh Friedman &lt;<a href=3D"mailto:aryeh.friedma=
n@gmail.com">aryeh.friedman@gmail.com</a>&gt; wrote:<br></div><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px soli=
d rgb(204,204,204);padding-left:1ex">Does GPT-3/3.5 come with a Ada (117M) =
model?<br>
<br>
On Sat, Apr 22, 2023 at 2:09=E2=80=AFPM Mario Marietto &lt;<a href=3D"mailt=
o:marietto2008@gmail.com" target=3D"_blank">marietto2008@gmail.com</a>&gt; =
wrote:<br>
&gt;<br>
&gt; And I&#39;m even more sure that using a linux bhyve VM you can configu=
re chatgpt 3.5 / 4 even faster than using the linuxulator.<br>
&gt;<br>
&gt; On Sat, Apr 22, 2023 at 8:06=E2=80=AFPM Mario Marietto &lt;<a href=3D"=
mailto:marietto2008@gmail.com" target=3D"_blank">marietto2008@gmail.com</a>=
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Why are you insisting on chat gpt 2 when you can have chatgpt 3.5 =
/ 4 installed on your local FreeBSD machine through the linuxulator ? This =
will be my next project.<br>
&gt;&gt;<br>
&gt;&gt; On Sat, Apr 22, 2023 at 8:00=E2=80=AFPM Aryeh Friedman &lt;<a href=
=3D"mailto:aryeh.friedman@gmail.com" target=3D"_blank">aryeh.friedman@gmail=
.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; My next step is to wipe the vm and try again (this time making=
 it<br>
&gt;&gt;&gt; scripted so I can do repeated test runs and very stuff systema=
tically)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Sat, Apr 22, 2023 at 6:53=E2=80=AFAM Odhiambo Washington &l=
t;<a href=3D"mailto:odhiambo@gmail.com" target=3D"_blank">odhiambo@gmail.co=
m</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; If you find a suitable, working version, please let me kn=
ow.<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; On Sat, Apr 22, 2023 at 1:05=E2=80=AFPM Aryeh Friedman &l=
t;<a href=3D"mailto:aryeh.friedman@gmail.com" target=3D"_blank">aryeh.fried=
man@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Seems like 2 steps forward and one backwards I had it=
 kind of working<br>
&gt;&gt;&gt; &gt;&gt; under the wrong version of python going to wipe the m=
achine and try<br>
&gt;&gt;&gt; &gt;&gt; again with 3.7 I think I screwed something up.... and=
 according to<br>
&gt;&gt;&gt; &gt;&gt; what I can ting the no tensorflow.contrib has to deal=
 with version of<br>
&gt;&gt;&gt; &gt;&gt; tensor flow... gpt-2 wants &lt;2.0.0 it appears (pref=
erence for 1.15)<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; On Sat, Apr 22, 2023 at 5:26=E2=80=AFAM Odhiambo Wash=
ington &lt;<a href=3D"mailto:odhiambo@gmail.com" target=3D"_blank">odhiambo=
@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; @Mario Marietto are you by any chance trying to =
address the issue raised by Aryeh?<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; ```<br>
&gt;&gt;&gt; &gt;&gt; &gt; ModuleNotFoundError: No module named &#39;tensor=
flow.contrib&#39;<br>
&gt;&gt;&gt; &gt;&gt; &gt; ```<br>
&gt;&gt;&gt; &gt;&gt; &gt; The problem is NOT about installing tensorflow, =
but rather getting the correct version that will not lead to the above erro=
r.<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; On Sat, Apr 22, 2023 at 12:19=E2=80=AFPM Mario M=
arietto &lt;<a href=3D"mailto:marietto2008@gmail.com" target=3D"_blank">mar=
ietto2008@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; marietto@marietto-nano:~$ python3<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; Python 3.10.6 (main, Mar 10 2023, 10:55:28) =
[GCC 11.3.0] on linux<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; Type &quot;help&quot;, &quot;copyright&quot;=
, &quot;credits&quot; or &quot;license&quot; for more information.<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt; import tensorflow as tf<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt; tf.__version__<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &#39;2.12.0&#39;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;&gt;&gt; print(tf.reduce_sum(tf.random.n=
ormal([1000, 1000])))<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; tf.Tensor(51.500687, shape=3D(), dtype=3Dflo=
at32)<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; <a href=3D"https://qengineering.eu/install-t=
ensorflow-2.4.0-on-jetson-nano.html" rel=3D"noreferrer" target=3D"_blank">h=
ttps://qengineering.eu/install-tensorflow-2.4.0-on-jetson-nano.html</a><br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; On Sat, Apr 22, 2023 at 10:47=E2=80=AFAM Odh=
iambo Washington &lt;<a href=3D"mailto:odhiambo@gmail.com" target=3D"_blank=
">odhiambo@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt; On Sat, Apr 22, 2023 at 11:20=E2=80=AFAM=
 Aryeh Friedman &lt;<a href=3D"mailto:aryeh.friedman@gmail.com" target=3D"_=
blank">aryeh.friedman@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; On Fri, Apr 21, 2023 at 8:31=E2=80=
=AFAM Mario Marietto &lt;<a href=3D"mailto:marietto2008@gmail.com" target=
=3D"_blank">marietto2008@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; If you don&#39;t want to use th=
e GPU,the commands should be more or less the following :<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; sudo touch /usr/local/etc/rc.d/=
ubuntu &amp;&amp; chmod +x /usr/local/etc/rc.d/ubuntu<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # Make it have this content:<br=
>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; #!/bin/sh<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; #<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # PROVIDE: ubuntu<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # REQUIRE: archdep mountlate<br=
>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # KEYWORD: nojail<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; #<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # This is a modified version of=
 /etc/rc.d/linux<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # Based on the script by mrclks=
r:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # <a href=3D"https://github.com=
/mrclksr/linux-browser-installer/blob/main/rc.d/ubuntu.in" rel=3D"noreferre=
r" target=3D"_blank">https://github.com/mrclksr/linux-browser-installer/blo=
b/main/rc.d/ubuntu.in</a><br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; #<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; . /etc/rc.subr<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; name=3D&quot;ubuntu&quot;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; desc=3D&quot;Enable Ubuntu chro=
ot, and Linux ABI&quot;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; rcvar=3D&quot;ubuntu_enable&quo=
t;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; start_cmd=3D&quot;${name}_start=
&quot;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; stop_cmd=3D&quot;:&quot;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; unmounted()<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; {<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0[ `stat -f &=
quot;%d&quot; &quot;$1&quot;` =3D=3D `stat -f &quot;%d&quot; &quot;$1/..&qu=
ot;` -a \<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0`stat=
 -f &quot;%i&quot; &quot;$1&quot;` !=3D `stat -f &quot;%i&quot; &quot;$1/..=
&quot;` ]<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; }<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; ubuntu_start()<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; {<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0local _emul_=
path _tmpdir<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0load_kld -e =
&#39;linux(aout|elf)&#39; linux<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0case `sysctl=
 -n hw.machine_arch` in<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0amd64)<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0load_kld -e &#39;linux64elf&#39; linux64<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0;;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0esac<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0if [ -x /com=
pat/ubuntu/sbin/ldconfigDisabled ]; then<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0_tmpdir=3D`mktemp -d -t linux-ldconfig`<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0/compat/ubuntu/sbin/ldconfig -C ${_tmpdir}/ld.so.cache<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0if ! cmp -s ${_tmpdir}/ld.so.cache /compat/ubuntu/etc/ld.so.cache; then<=
br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0cat ${_tmpdir}/ld.so.cache &gt; /compat/ubuntu/etc/ld.so.c=
ache<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0fi<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0rm -rf ${_tmpdir}<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0fi<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0# Linux uses=
 the pre-pts(4) tty naming scheme.<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0load_kld pty=
<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0# Handle unb=
randed ELF executables by defaulting to ELFOSABI_LINUX.<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0if [ `sysctl=
 -ni kern.elf64.fallback_brand` -eq &quot;-1&quot; ]; then<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0sysctl kern.elf64.fallback_brand=3D3 &gt; /dev/null<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0fi<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0if [ `sysctl=
 -ni kern.elf32.fallback_brand` -eq &quot;-1&quot; ]; then<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0sysctl kern.elf32.fallback_brand=3D3 &gt; /dev/null<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0fi<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0sysctl compa=
t.linux.emul_path=3D/compat/ubuntu<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0_emul_path=
=3D&quot;/compat/ubuntu&quot;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0unmounted &q=
uot;${_emul_path}/dev&quot; &amp;&amp; (mount -o nocover -t devfs devfs &qu=
ot;${_emul_path}/dev&quot; || exit 1)<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0unmounted &q=
uot;${_emul_path}/dev/fd&quot; &amp;&amp; (mount -o nocover,linrdlnk -t fde=
scfs fdescfs &quot;${_emul_path}/dev/fd&quot; || exit 1)<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0unmounted &q=
uot;${_emul_path}/dev/shm&quot; &amp;&amp; (mount -o nocover,mode=3D1777 -t=
 tmpfs tmpfs &quot;${_emul_path}/dev/shm&quot; || exit 1)<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0unmounted &q=
uot;${_emul_path}/home&quot; &amp;&amp; (mount -t nullfs /home &quot;${_emu=
l_path}/home&quot; || exit 1)<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0unmounted &q=
uot;${_emul_path}/proc&quot; &amp;&amp; (mount -o nocover -t linprocfs linp=
rocfs &quot;${_emul_path}/proc&quot; || exit 1)<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0unmounted &q=
uot;${_emul_path}/sys&quot; &amp;&amp; (mount -o nocover -t linsysfs linsys=
fs &quot;${_emul_path}/sys&quot; || exit 1)<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0unmounted &q=
uot;${_emul_path}/tmp&quot; &amp;&amp; (mount -t nullfs /tmp &quot;${_emul_=
path}/tmp&quot; || exit 1)<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0unmounted /d=
ev/fd &amp;&amp; (mount -o nocover -t fdescfs fdescfs /dev/fd || exit 1)<br=
>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0unmounted /p=
roc &amp;&amp; (mount -o nocover -t procfs procfs /proc || exit 1)<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;=C2=A0 =C2=A0 =C2=A0true<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; }<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; load_rc_config $name<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; run_rc_command &quot;$1&quot;<b=
r>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; sysrc ubuntu_enable=3DYES<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # Create necessary mount points=
 for a working Linuxulator:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; mkdir -p {/compat/ubuntu/dev/fd=
,/compat/ubuntu/dev/shm,/compat/ubuntu/home,/compat/ubuntu/tmp,/compat/ubun=
tu/proc,/compat/ubuntu/sys}<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # Start Ubuntu service:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; service ubuntu start<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # Install needed packages:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; pkg install debootstrap pulseau=
dio<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # Install Ubuntu 20.04 into /co=
mpat/ubuntu:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; debootstrap --arch=3Damd64 --no=
-check-gpg focal /compat/ubuntu<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # Restart Ubuntu service to mak=
e sure everything is properly mounted:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; service ubuntu restart<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # Fix broken symlink:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; cd /compat/ubuntu/lib64/ &amp;&=
amp; rm ./ld-linux-x86-64.so.2 ; ln -s ../lib/x86_64-linux-gnu/<a href=3D"h=
ttp://ld-2.31.so" rel=3D"noreferrer" target=3D"_blank">ld-2.31.so</a> ld-li=
nux-x86-64.so.2<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # Chroot into your Linux enviro=
nment:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; chroot /compat/ubuntu /bin/bash=
<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # Set correct timezone inside y=
our chroot:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; printf &quot;%b\n&quot; &quot;0=
.0 0 0.0\n0\nUTC&quot; &gt; /etc/adjtime<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; sudo dpkg-reconfigure tzdata # =
For some reason sudo is necessary here, otherwise it fails.<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # Fix APT package manager:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; printf &quot;APT::Cache-Start 2=
51658240;&quot; &gt; /etc/apt/apt.conf.d/00aptitude<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # Enable more repositories:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; printf &quot;deb <a href=3D"htt=
p://archive.ubuntu.com/ubuntu/" rel=3D"noreferrer" target=3D"_blank">http:/=
/archive.ubuntu.com/ubuntu/</a> focal main restricted universe multiverse&q=
uot; &gt; /etc/apt/sources.list<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # Install required programs:<br=
>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; apt update ; apt install -y apt=
-transport-https curl fonts-symbola gnupg pulseaudio build-essential gcc gf=
ortran<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # Exit out of chroot<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; exit<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # Fix x86_64-linux-gnu librarie=
s path between ubuntu and freebsd<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; cp -r /compat/ubuntu/usr/lib/x8=
6_64-linux-gnu /lib<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; --&gt; Installing PyTorch and y=
our chatgpt github fork on FreeBSD<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # fetch <a href=3D"https://gist=
.githubusercontent.com/shkhln/40ef290463e78fb2b0000c60f4ad797e/raw/f6409832=
49607e38af405c95c457ce4afc85c608/uvm_ioctl_override.c" rel=3D"noreferrer" t=
arget=3D"_blank">https://gist.githubusercontent.com/shkhln/40ef290463e78fb2=
b0000c60f4ad797e/raw/f640983249607e38af405c95c457ce4afc85c608/uvm_ioctl_ove=
rride.c</a><br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # /compat/ubuntu/bin/gcc --sysr=
oot=3D/compat/ubuntu -m64 -std=3Dc99 -Wall -ldl -fPIC -shared -o dummy-uvm.=
so uvm_ioctl_override.c<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # pkg install linux-miniconda-i=
nstaller<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # miniconda-installer<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # bash<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # source /home/marietto/minicon=
da3/etc/profile.d/conda.sh<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; # conda activate<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; (base) # conda activate pytorch=
<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; (pytorch) # conda activate<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; (base) # conda activate<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &gt; (base) # git clone your chatgpt=
 github fork<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; I have done that I think and get:<br=
>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; (base) [babyspock@babyspock ~]$ pyth=
on<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; src/generate_unconditional_samples.p=
y --model_name 117M --nsamples 5<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; --length 512<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; python: can&#39;t open file<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; &#39;/usr/opt/babySpock/src/generate=
_unconditional_samples.py&#39;: [Errno 2]<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; No such file or directory<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; (base) [babyspock@babyspock ~]$ cd g=
pt-2/<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; (base) [babyspock@babyspock ~/gpt-2]=
$ python<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; src/generate_unconditional_samples.p=
y --model_name 117M --nsamples 5<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; --length 512<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; 2023-04-22 00:17:18.661083: I tensor=
flow/tsl/cuda/cudart_stub.cc:28]<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; Could not find cuda drivers on your =
machine, GPU will not be used.<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; 2023-04-22 00:17:18.710468: I tensor=
flow/tsl/cuda/cudart_stub.cc:28]<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; Could not find cuda drivers on your =
machine, GPU will not be used.<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; 2023-04-22 00:17:18.710951: I<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; tensorflow/core/platform/cpu_feature=
_guard.cc:182] This TensorFlow<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; binary is optimized to use available=
 CPU instructions in<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; performance-critical operations.<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; To enable the following instructions=
: AVX2 FMA, in other operations,<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; rebuild TensorFlow with the appropri=
ate compiler flags.<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; 2023-04-22 00:17:19.429409: W<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; tensorflow/compiler/tf2tensorrt/util=
s/py_utils.cc:38] TF-TRT Warning:<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; Could not find TensorRT<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; Traceback (most recent call last):<b=
r>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt;=C2=A0 =C2=A0File &quot;/usr/opt/baby=
Spock/gpt-2/src/generate_unconditional_samples.py&quot;,<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; line 9, in &lt;module&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0import model, sam=
ple, encoder<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt;=C2=A0 =C2=A0File &quot;/usr/opt/baby=
Spock/gpt-2/src/model.py&quot;, line 3, in &lt;module&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0from tensorflow.c=
ontrib.training import HParams<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;&gt; ModuleNotFoundError: No module named=
 &#39;tensorflow.contrib&#39;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt; Use Python3.7 or earlier.<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt; --<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt; Best regards,<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt; Odhiambo WASHINGTON,<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt; Nairobi,KE<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt; +254 7 3200 0004/+254 7 2274 3223<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt; &quot;Oh, the cruft.&quot;, egrep -v &#3=
9;^$|^.*#&#39; =C2=AF\_(=E3=83=84)_/=C2=AF :-)<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;&gt; [How to ask smart questions: <a href=3D"=
http://www.catb.org/~esr/faqs/smart-questions.html" rel=3D"noreferrer" targ=
et=3D"_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]<br>;
&gt;&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; --<br>
&gt;&gt;&gt; &gt;&gt; &gt;&gt; Mario.<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; &gt; --<br>
&gt;&gt;&gt; &gt;&gt; &gt; Best regards,<br>
&gt;&gt;&gt; &gt;&gt; &gt; Odhiambo WASHINGTON,<br>
&gt;&gt;&gt; &gt;&gt; &gt; Nairobi,KE<br>
&gt;&gt;&gt; &gt;&gt; &gt; +254 7 3200 0004/+254 7 2274 3223<br>
&gt;&gt;&gt; &gt;&gt; &gt; &quot;Oh, the cruft.&quot;, egrep -v &#39;^$|^.*=
#&#39; =C2=AF\_(=E3=83=84)_/=C2=AF :-)<br>
&gt;&gt;&gt; &gt;&gt; &gt; [How to ask smart questions: <a href=3D"http://w=
ww.catb.org/~esr/faqs/smart-questions.html" rel=3D"noreferrer" target=3D"_b=
lank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]<br>;
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; --<br>
&gt;&gt;&gt; &gt;&gt; Aryeh M. Friedman, Lead Developer, <a href=3D"http://=
www.PetiteCloud.org" rel=3D"noreferrer" target=3D"_blank">http://www.Petite=
Cloud.org</a><br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; --<br>
&gt;&gt;&gt; &gt; Best regards,<br>
&gt;&gt;&gt; &gt; Odhiambo WASHINGTON,<br>
&gt;&gt;&gt; &gt; Nairobi,KE<br>
&gt;&gt;&gt; &gt; +254 7 3200 0004/+254 7 2274 3223<br>
&gt;&gt;&gt; &gt; &quot;Oh, the cruft.&quot;, egrep -v &#39;^$|^.*#&#39; =
=C2=AF\_(=E3=83=84)_/=C2=AF :-)<br>
&gt;&gt;&gt; &gt; [How to ask smart questions: <a href=3D"http://www.catb.o=
rg/~esr/faqs/smart-questions.html" rel=3D"noreferrer" target=3D"_blank">htt=
p://www.catb.org/~esr/faqs/smart-questions.html</a>]<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Aryeh M. Friedman, Lead Developer, <a href=3D"http://www.Petit=
eCloud.org" rel=3D"noreferrer" target=3D"_blank">http://www.PetiteCloud.org=
</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Mario.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Mario.<br>
<br>
<br>
<br>
-- <br>
Aryeh M. Friedman, Lead Developer, <a href=3D"http://www.PetiteCloud.org" r=
el=3D"noreferrer" target=3D"_blank">http://www.PetiteCloud.org</a><br>;
</blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Mario.<br></d=
iv>

--0000000000001b5a4f05f9f0bedd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSijtT_270sOcaqwkA4xrf2mTVpff36vDX%2Bobhx3OoKfMKQ>